GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

learn more… | top users | synonyms

0
votes
0answers
130 views

screen does not do vertical split on mountain lion

I installed screen using macports on Mountain Lion and the install log even says its also installing the vertical split patch. But the actual split is not happening. C-a | does not work. Does this not ...
1
vote
1answer
176 views

How to kill screen session with running sudo command?

I'm trying to write a bash script which would relaunch my NodeJS server. This is how I'm launching the screen with the server: screen -S web-server -d -m node web-server.js which end up in this ...
2
votes
1answer
148 views

screen - move cursor to beginning of line

In bash I can usually move the cursor to the beginning of the line using CTRL+a. In screen, CTRL+a is being used for the special screen-commands. How can I a) use another key-combination for the ...
2
votes
1answer
437 views

How do I stop ssh-agent from forgetting my password after I login to the screen session from SSH?

I have a screen session open in an lxterminal window. If I SSH somewhere, the first time it happens, an ssh-agent window opens and asks me for my private key passphrase, and after that ssh goes right ...
1
vote
0answers
123 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
0
votes
0answers
56 views

How to delay 500 ms in a screen keybinding sequence

I'm trying to bind a key in screen so that it will send Ctrl+C to a process, wait a half second, and then quit. In all examples below, ^C represents a Ctrl+C, typed into something like vi using ...
0
votes
1answer
291 views

set GNU screen background color

I would like screen to change the background color of the terminal (xterm) when started. I want to have a quick way of determining whether I am in screen or not. I often work over shh and it often ...
0
votes
1answer
150 views

How do I supress date/time display in GNU Screen vertical splits?

I am using a copy of GNU Screen packaged for Fedora 18. I copied these neat lines over onto my .screenrc, to show me the host/date-time/windows: # Neat status bar on the bottom of the screen caption ...
0
votes
1answer
77 views

Attach screen on a running terminal

I have a long running process in a (virtual) terminal that unfortunately was not started in a (gnu) screen session. Is there a way to migrate it in a screen session? (obviously, without stopping it) ...
0
votes
0answers
30 views

Linux screen program: determining the communication details of a working connection

I am trouble shooting an issue with a PySerial program which interfaces a step motor via terminal emulation, and going back to the use of screen as a known working interface. When I connect to the ...
1
vote
0answers
44 views

Emacs and Gnu Screen Causing Line Wrap Problems

I have gnuscreen on with multiple "tabs" open. Emacs is on tab 0. When I tab to a different screen and return to Emacs, the lines do not wrap properly anymore. They blend into each other. If I have a ...
0
votes
1answer
260 views

Locking a GNU-screen session after x minutes of non-use on Linux

I have a couple of services running in a GNU-screen session on top of Bash. Because one of the services contain sensitive data I have to constantly either close the terminal completely or lock the ...
0
votes
1answer
51 views

How to switch to an existing vim instance from inside of screen when opening a file twice

When i work on many files with screen and vim, often i try to open a file already open.. I must switch manually between screen windows witch ctrl-space and press ctrl-g until i find the right window. ...
1
vote
1answer
99 views

GNU Screen: run arbitrary command in the status bar?

Is it possible to get GNU Screen to display the output of an arbitrary command, e.g. who | wc -l, in the status bar, refreshing it, say, every minute?
2
votes
1answer
70 views

Gnu screen: Problems with %F

I'm trying to set region captions to list all windows on active (focused) screen region, and only the title for other regions. For example: caption always "%?%F %w %: %n*%t %?" should display ...
0
votes
0answers
64 views

Prevent a GNU Screen session from closing

So I run Irssi on my VPS inside a GNU Screen session and sometimes accidentally close Irssi process when I log out, therefore forgetting to close the Screen session beforehand. Is there a way that I ...
0
votes
1answer
167 views

Setting GNU Screen to send escape codes to outer terminal on TI

I’m using GNU Screen inside mintty. To get the scroll wheel to work, I had to switch the mintty scroll wheel mode with an escape code (^[[?7787h). This has the effect that the scroll wheel does not ...
0
votes
1answer
914 views

No Sockets found in /var/run/screen/S-root. when using `screen`

I want to screen on a machine with fedora the result is: [root@kitch udp]# screen -ls No Sockets found in /var/run/screen/S-root. [root@kitch udp]# screen -ls listen_for_exception No ...
0
votes
2answers
647 views

vim under screen under PuTTY working with mouse wheel?

Is there any way to make this work? i'd love to scroll my files in vim with the mouse scroll wheel. Also, i wouldn't mind scrolling the gnu screen buffer with the mouse wheel as well, without having ...
1
vote
1answer
663 views

List processes being run inside a screen (Linux) session

I have several screen sessions, each one of them is running one java application. For example, I have these 3 screen sessions : 7361.ARM48 (Detached) 7397.ROP90 (Detached) ...
0
votes
0answers
322 views

Autostart multiple screen sessions in Ubuntu Server

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
0answers
10 views

Autostart multiple screen sessions in Ubuntu Server [duplicate]

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
1answer
53 views

Emacs and Unix Screen

I'm in Screen and have one window set to emacs. When I leave that window and maneuver to a different one, say screen two or three, the text in the original emacs window gets discombobulated. The line ...
2
votes
2answers
1k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start a screen when I ssh in, and NOT exit my ...
0
votes
2answers
143 views

can a .screenrc key binding contain variables?

I'm working on a customer .screenrc for Screen and I can't seem to find a way for it to support variables. Here's what I'm trying to accomplish: I want to press ^l, then specify a name, and that ...
0
votes
3answers
46 views

Unable to access shell on ssh

I have added the following line to my .bashrc file to start gnu screen on login: exec screen But it seems to go in a loop (may be that is its starting screen also on screen start). I am not able ...
2
votes
1answer
300 views

How to get GNU-Screen Command in Linux to echo locally

I'm looking to run screen screen /dev/ttyS0 115200 and echo my commands locally. This is one of those rare phrases where google spits out a lot of irrelevant results.
0
votes
1answer
55 views

putting “screen” in ~/.profile does nothing

I want to always use "screen" in any terminal. i've added into my ~/.profile a new line: "screen", just like it said here: ...
0
votes
2answers
147 views

Can gnu screen prompt for a title when a new window is created?

There are a number of questions about automatically naming screen windows based on what's running in them. But sometimes why you created the window is more important than what you're doing in it. ...
1
vote
2answers
119 views

Is there a way to make GNU Screen not prompt for confirmation?

My googling only left me the clue that this was the case for old screen, and now the new screen prompts for confirmation (e.g. whenever I try to kill a window or exit out of screen) . Is there a ...
0
votes
3answers
164 views

Tell GNU screen to 'reattach or create and execute command'

For using IRC, I usually open irssi on my headless server in a screen session. Then, sometimes I detach it to wait for an answer, but sometimes I'm not sure if a screen with irssi is already open on a ...
2
votes
2answers
452 views

Use of screen on terminal is blocked by length of user name

I am a user of screen on terminal, but i tried to mount a screen on my Macbook and results in this warning: $ screen LoginName too long - sorry. I read on web and the suggestion is change the ...
3
votes
2answers
145 views

Restart a process in detached screen via ssh

I have a server with several screens running, each with their own node server listing to different ports. I'd like to create Jenkins jobs to ssh into the box, reattach a specific screen, stop the ...
1
vote
2answers
97 views

Screen: Grouping all vim invokation under one window

In screen, would it possible to open up all instances of vim in one window? (e.g. window 2) Initially, the window will switch to the designated window and open up the file in the buffer. And ...
0
votes
2answers
61 views

Pasting in vim via screen

I noticed that I have to be in insert mode in order to paste in vim using screen's shortcut C-a ] or C-a C-] otherwise I get garbled up (not necessarily garbage) output. I do not think this behavior ...
1
vote
1answer
86 views

gnu screen | running screen in screen | keyboard shortcuts

I want to run GNU screen in another screen session. Running is not a problem but the keyboard shortcuts are captured by the "parent" screen session. Is there a way to pass these keyboard shortcut to ...
2
votes
0answers
136 views

How can I timestamp each line outputted by a serial device?

I access a serial measurement device via screen /dev/tty.usbserial 9600. While the device is measuring it outputs its data n times per second on one line. How can I add a timestamp every line (or ...
0
votes
0answers
121 views

How can I send a command to two separate screen sessions simultaneously?

I'm monitoring two measurement devices (usbserial1 and usbserial2) over RS232 (via an USB adapter). I do this in the following way: I open two terminal windows. In one window I write the following ...
1
vote
1answer
226 views

Set gnu screen title within ssh

On my local machine, window titles within screen update nicely to the pwd. I have shelltitle '% |bash' in my .screenrc. Yet when I ssh to another host, the window title remains as the pwd from ...
0
votes
2answers
255 views

How to actually type CTRL-A in a linux terminal?

How do I to invoke Ctrl-a in a Linux terminal session. I am trying to share a screen using screen. The command to turn on multiuser is Ctrl-A :multiuser on , I know how to press Ctrl+a on my ...
1
vote
1answer
93 views

Taking a screenshot of screen session over ssh

I often log via ssh to servers just to execute screen -r and look at my irssi irc session. Then I do Ctrl-AD and logout. Is there a nice solution to wrap this into a script, so that I get to see the ...
2
votes
1answer
367 views

Clearing screen after quit in Windows vim with ConEmu/Cygwin

I'm trying to bring to work together 3 things: ConEmu, Cygwin and vim. The vim in question is not Cygwin vim, but the native Windows vim from gvim package (chosen because Cygwin vim does not support ...
0
votes
1answer
24 views

To move between windows in Screen by combine keys

How to bind following key to move between windows in gnu screen ? Ctrl+Shirt+h: move to prev window Ctrl+Shirt+l: move to next window Thanks a lot.
11
votes
1answer
544 views

GNU Screen on MacOS 10.8 says “Be careful! New screen tonight”

GNU Screen on MacOS 10.8 says "Be careful! New screen tonight" when it starts up screen sometimes. Any ideas what causes this, or is there a way to disable it and/or change the text to something else? ...
0
votes
1answer
56 views

gnu screen command that stops running then switching to another tab

I use GNU screen to keep a bunch of tabs open in my terminal session, and I would like to have a bash command, watch -n 1 ps aux | grep something, that runs when I am looking at that screen tab, but ...
1
vote
0answers
170 views

How do you resize a split window in gnu screen to maximum?

While in gnu screen for linux, how do I resize the current window to full screen? <ctrl-a> a :resize max does not work.
1
vote
1answer
67 views

Vim on screen, without looking

I'm trying to do the following: Start a new screen session Start vim on it. Feed commands to it. Check the output as a means of testing vim. I can do this, but the catch is that I want it to be ...
6
votes
2answers
489 views

Can I steal a vim session from another terminal?

I forgot to start screen before I started working, and now I've SSH'd into my machine from my laptop. ps -a gives me the process ID of the vim process. Can I steal the vim session from my other ...
2
votes
1answer
138 views

Allowing a process in screen to restart itself

System is Debian Whezy x64. I currently use screen to start programs as user rather than root. It looks like this: In /etc/rc.local, I call su -c "/home/user/scripts/startup" user Then, in ...
3
votes
1answer
145 views

No-socket alternative to tmux or screen

My university gives each student a directory on their AFS which is accessible via SSH. There is a (light) CLI-driven piece of software that I would like to run continuously from the university. I ...