Console buffer width always 1 column less than setting

Steven Penny svnpenn@gmail.com
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:

    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



More information about the Cygwin mailing list