This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Console buffer width always 1 column less than setting
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 01 Jan 2018 14:24:57 -0800 (PST)
- Subject: Re: Console buffer width always 1 column less than setting
- Authentication-results: sourceware.org; auth=none
- References: <5a49da2a.74109d0a.82d07.8291@mx.google.com>
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