suzdraws / mintty

Automatically exported from code.google.com/p/mintty
0 stars 0 forks source link

scrolling doesn't work with GNU screen plus mintty #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install (GNU) screen
2. run it in a mintty window

The resulting windows show a (mintty) scrollbar, but it doesn't work.

What version of the product are you using? On what operating system?

New install of mintty 0.5.6 on new install of cygwin 1.7.1

Original issue reported on code.google.com by h...@markup.co.uk on 4 Jan 2010 at 9:30

GoogleCodeExporter commented 9 years ago
screen maintains its own scrollback buffer independent of mintty's, which indeed
cannot be accessed using the scroll bar. You need to use screen's key 
combinations
for the purpose instead. See the screen manual for details.

Original comment by andy.koppe on 5 Jan 2010 at 6:28

GoogleCodeExporter commented 9 years ago
But when using rxvt plus GNU screen, the scroll bar works. . .

Original comment by h...@markup.co.uk on 5 Jan 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Ah, this is due to a difference between rxvt's and xterm's scrollback handling 
on the
so-called "alternate screen", which is a second terminal screen buffer. Rxvt 
has a
separate scrollback for the alternate screen and adds scrolled off stuff to 
that.
Xterm (and hence mintty) don't do that, on the grounds that the alternate 
screen is
intended for fullscreen apps like editors.

Therefore, to get back the behaviour you're used to, you need to stop 'screen' 
from
switching to the alternate screen, by putting this into your .screenrc:

terminfo xterm* ti=:te=

However, please note that the scrollback of different screen windows will get 
mixed
up (same as in rxvt). If you want to avoid that, you do need to use screen's own
scrollback functionality.

Original comment by andy.koppe on 5 Jan 2010 at 12:41

GoogleCodeExporter commented 9 years ago
The above fix doesn't appear to work in 1.2 beta for 64-bit cygwin???

Original comment by h...@inf.ed.ac.uk on 4 Jan 2014 at 4:09

GoogleCodeExporter commented 9 years ago
The fix worked for me on 1.2beta1 (x64). In case you're running 'sudo screen' 
then you need to add the line in .screenrc on root.

Original comment by iamfa...@gmail.com on 25 Apr 2014 at 9:29

GoogleCodeExporter commented 9 years ago
Thanks, but I'm not sure I understand.  This is Cygwin, not Linux, so I run 
mintty with Admin privileges.  My .screenrc, i.e. $HOME/.screenrc, is being 
loaded, and has the above line in it.  I also just added it to /etc/screenrc, 
but I'm still not seeing scrollbar behaviour.

Perhaps you could share your /etc/screenrc and $HOME/.screenrc ?

Original comment by h...@inf.ed.ac.uk on 25 Apr 2014 at 10:45

GoogleCodeExporter commented 9 years ago
My bad, I'm connecting to a remote terminal via ssh so I modified the .screenrc 
file there (not locally). Haven't tried it locally so can't confirm if this 
works.

Original comment by iamfa...@gmail.com on 30 Apr 2014 at 10:59