Console buffer width always 1 column less than setting

Steven Penny
Mon Jan 1 22:25:00 GMT 2018

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:

    export PAGER='env TERM=cygwin less'


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list