public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Console buffer width always 1 column less than setting
Date: Mon, 01 Jan 2018 22:25:00 -0000	[thread overview]
Message-ID: <5a4ab539.ab299d0a.71bcb.ac0f@mx.google.com> (raw)
In-Reply-To: <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

      reply	other threads:[~2018-01-01 22:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-05 19:53 Steven Penny
2017-02-05 20:12 ` Vince Rice
2017-02-05 20:59   ` Steven Penny
2017-02-06 17:43     ` Lee Dilkie
2017-02-06 17:55       ` Vince Rice
2017-02-06 17:55       ` Marco Atzeri
2017-02-07 11:38         ` David Balažic
2017-02-07 14:14           ` cyg Simple
2017-02-07 15:35           ` Andrey Repin
2017-02-07 14:11       ` cyg Simple
2017-02-07 14:23         ` Lee Dilkie
2017-02-07 14:40           ` cyg Simple
2017-02-07 18:44             ` Lee Dilkie
2017-02-07 19:19               ` Steven Penny
2017-04-24  7:34   ` Steven Penny
2018-01-01  6:50     ` Steven Penny
2018-01-01 22:25       ` Steven Penny [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a4ab539.ab299d0a.71bcb.ac0f@mx.google.com \
    --to=svnpenn@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).