delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/01/17:25:14

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:references:to:subject
:content-type; q=dns; s=default; b=bSfLnSbYOKu+jQuB7vKOjX6G26YVg
qzODsvrSbAbK+pSi9Y8/X3RCjI05QohuMWoCMNnD+A455hXgKSPOkQH/ZljkmYq3
OAQ9x2A15w1yhg3XvMCZqgPcB39cH2i+KvbwH2RS5AO64WagNY/oNNfsZ+aLU/2A
Ikfwo78aKveO0Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:references:to:subject
:content-type; s=default; bh=XCYCPWuurYgTN0tthq4OKT62Jck=; b=H14
nEC8aMM+eXaTH9UC6r+gH8svzRT+Wg2dysvXl9xMexsZt4Tfy9t/JXjPj/9IexTW
2MdNQfm/ndzZQFfk6fPPU7rKMT8qtW32Jm56S7Z+fxPL0mbtrAfmGLJvhwLEYVgU
Gc3wzJ3bBp6d1c+ctozdpTjVqTaunkLsxH0O7qPA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=crops, H*M:google, H*UA:github.com
X-HELO: mail-oi0-f43.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:references:to:subject :user-agent; bh=ffJEKpLWnEyYYS41jOQkNzBeliTFMINx2gB57iL+wkw=; b=W4iUfweCYaz34PZvyX3Nb0at2RnjOt/G0WI/ShEfK6jysTd80PFpZhkOiNuJqAyHQ+ xWqn+Foi8/RD6cczTsUYZAyjJOLCOcqxtLOxNZPmK+sINX7z/5bpjT0v3UxjcKaUST3t uvMNIolJeWZC4BszoezoTjx7ulf2z8mPJWwW7PL8oxN9SQvOPYuxNZy9/LURiWTtWuWk pWGdvro2IL4dOXKpRyZziVo6ma67zIWuD7jGg+Lfu4HpLZcKjI0/+lrGnewD9L7YzwXB cSFKbTOBXrrC0jCPXnkiefwUbxlMOgRqD4k+CwG8pM+r+7YJr1am6INvgyCusWT3RG8V vmRA==
X-Gm-Message-State: AKGB3mJLdAn+Gnv2WFqw1dpfoEAYrGD2aURj15ZTNWiulWHpxYxJqP/v l41thzXFFz+R3XW0LN1lMV6BjA==
X-Google-Smtp-Source: ACJfBovkO3rH0WzJIoeVGKCKkvWIJGxmqca4y1KIjbkgo9/VBgjef+Xi8CrdSaVWbqC8QHYlkYrW7A==
X-Received: by 10.202.71.67 with SMTP id u64mr29190600oia.317.1514845498364; Mon, 01 Jan 2018 14:24:58 -0800 (PST)
Message-ID: <5a4ab539.ab299d0a.71bcb.ac0f@mx.google.com>
Date: Mon, 01 Jan 2018 14:24:57 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
References: <5a49da2a DOT 74109d0a DOT 82d07 DOT 8291 AT mx DOT google DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Console buffer width always 1 column less than setting
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

On Sun, 31 Dec 2017 22:50:18, Steven Penny wrote:
> any terminal using "xenl" - not sure what a workaround for this is other than
> dont use "xenl" and deal with the missing column per the original issue.

The problem is with how readline processes input [1], as you can:

    echo <some long string>

and it will use the full 80 columns, it is only if you are pasting that the
problem crops up. A workaround is to use 2 terminals, one for readline and one
for less (man). For the readline terminal, you need one that has "xenl".
"screen.Eterm" (case sensitive) is pretty close to the default "cygwin", or can
make your own per my previous post [2]. For the less terminal, you can just use
the default "cygwin" terminal or a custom terminal. To implement, add this to
"~/.profile" or similar:

    TERM=screen.Eterm
    export PAGER='env TERM=cygwin less'

[1] http://stackoverflow.com/a/31360700
[2] http://cygwin.com/ml/cygwin/2017-04/msg00297.html


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019