public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Screen crippled by applications using alternative screen
Date: Fri, 25 Apr 2014 17:36:00 -0000	[thread overview]
Message-ID: <20140425173617.GB346@ednor.casa.cgf.cx> (raw)
In-Reply-To: <loom.20140425T174944-109@post.gmane.org>

On Fri, Apr 25, 2014 at 05:20:21PM +0000, Dawid Ferenczy wrote:
>Hi,
>
>I'm still having issues with applications which use alternative screen for 
>output (LESS, MAN). When I exit that application, its output stays on 
>screen, prompt is displayed over it.
>
>My system is as follows:
>
>OS: Windows 7 Home 64 bit
>Cygwin: 1.7.29 64 bit
>Console emulator: ConEmu 140416 64 bit, Console 2.00.148 64 bit
>
>Example steps to reproduce the issue:
>
>1. execute "man grep"
>2. scroll down to the end (PAGE DOWN)
>3. exit (press Q), result: http://ferenczy.cz/tmp/cygwin/1.png
>4. execute "pwd", result: http://ferenczy.cz/tmp/cygwin/2.png
>5. clear screen (CTRL + L), result: http://ferenczy.cz/tmp/cygwin/3.png
>
>Behavior is the same in plain cmd.exe, Console2 and ConEmu. MinTTY works 
>fine. If I exit MAN on first page (without scrolling), the screen isn't 
>crippled.
>
>To reach clean screen I have to repeatedly clear the screen (CTRL + L) until 
>I browse whole MAN output (all pages). Alternative screen should be 
>completely separated from the regular screen.
>
>It's probably caused by that Cygwin doesn't send ANSI codes to the console 
>emulator, see https://code.google.com/p/conemu-maximus5/wiki/CygwinAnsi.

"doesn't send ANSI codes to the console" doesn't make a lot of sense.
"Cygwin" doesn't send ANSI codes to the windows console since the windows
console doesn't understand ANSI codes.

I don't see the behavior that you are specifying but I doubt that what
you are seeing has anything to do with the gobbledegook on the above
page.  If you do want "Cygwin" to send ANSI escape sequences then you'll
need to make sure that you're using a package which knows how to send
them, i.e., an ncurses-using package, and that the TERM environment
variable is set appropriately.

cgf

It 
>has another consequences, for example there doesn't work mouse in 
>applications under Cygwin, see https://code.google.com/p/conemu-
>maximus5/issues/detail?id=1497 (last messages).
>
>Would it be possible to solve this somehow? This could solve all issues with 
>crippled screen, scroll buffer, not working mouse etc, I guess. Moreover 
>ANSI codes are standard behavior.
>
>Thank you for your opinion.
>
>-- 
> Dawid Ferenczy
> http://twitter.com/DawidFerenczy
>
>
>--
>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
>
>

--
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:[~2014-04-25 17:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25 17:21 Dawid Ferenczy
2014-04-25 17:36 ` Christopher Faylor [this message]
2014-04-26 18:06   ` Christopher Faylor
2014-04-26 19:09     ` Dawid Ferenczy
2014-04-26 19:35     ` Dawid Ferenczy
2014-05-03 19:52     ` Dawid Ferenczy
2014-05-03 20:02       ` Christopher Faylor
2014-04-26 18:22   ` Dawid Ferenczy
2014-04-26 19:07     ` Christopher Faylor
2014-04-26 20:16       ` Dawid Ferenczy
2014-04-26 22:45         ` Christopher Faylor
2014-04-26 18:49   ` Dawid Ferenczy
2014-05-01 10:14   ` Maximus5
2014-05-01 22:10     ` Larry Hall (Cygwin)
2014-05-02  5:33       ` Christopher Faylor
2014-05-02  5:37         ` Christopher Faylor
2014-05-02 11:09           ` Maximus5
2014-05-03  5:54           ` Csaba Raduly
2014-04-26  7:38 Houder
2014-04-27  9:11 ` Houder

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=20140425173617.GB346@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@cygwin.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).