How to get a screen session to work the way I want to?
November 5, 2006 9:17 AM
Subscribe
How do I get my Linux shell to behave the same when I am using screen, as when I am not using it?
I connect to my linux servers with Putty, from Windows. These are two different servers, but I have the same annoyance. When I work in the shell (bash) without using screen, and I use "less" or "man" or "vim" or something like that to read a file, and I close that file, the open file remains visible in the window. I just start typing new stuff below it. If I do not use screen, when I close the file, I get returned to the shell window I was using before, and I can see my previous commands.
Also, when I am not in a screen session, I can use the scrollbars in Putty to scroll up in history. When I am in a screen session, this does not work. I can imagine this is a limitation of screen sessions, but if there is a solution for this, I would like to know as well.
The latter annoyance is not as important, but the former has been irritating me for a long while now, and I hope there is an easy solution.
posted by davar to computers & internet (11 comments total)
3 users marked this as a favorite
screen has a built-in scrollback buffer, which you can use by hitting C-a ESC, and then using C-b and C-f to go backwards and forwards.
It's not as convenient as your terminal's scroll bar, but since screen is sort of simulating a terminal inside a terminal, your terminal isn't aware of the rest of the output, and you have to use screen's scrolling (AFAIK).
posted by chrismear at 9:25 AM on November 5, 2006