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

3
votes
2answers
436 views

GNU Screen: Combining split-regions and full-screen sessions

Let's say I have three sessions: 0, 1 and 2 I'm on session 0 and I press CTRL-A S to split the screen. Then I select session 1 for the bottom split region, while 0 is in the upper. Can I switch to ...
1
vote
2answers
956 views

How to re-enable function keys in byobu?

I was using byobu on Ubuntu 11.10 Server and I needed to hit a function key in an app, so I hit F9 to bring up the config menu and switched the keybinding set from "f-keys" to "screen-escape-keys". ...
1
vote
1answer
954 views

Scrolling in GNU Screen

I'm seeing something weird in GNU screen. When I use screen on my own Ubuntu 10.04 box, as I enter a bunch of lines in the shell, I can see my GNOME-terminal window gathering my scrollback, and I can ...
1
vote
0answers
96 views

GNU screen session dies when I open vim or vi

Sometimes it dies in the moment a file is opened. Sometimes it allows me to browse the same file and dies on tenth PageDown, for example. I set "term xterm" in .screenrc.
1
vote
1answer
869 views

Using fg with screen

I have a running job in a ssh terminal on an external server. I can pause it with CTRL + Z and resume it with fg. But I would like to pause it, run screen screen -S my_job and get it back in front ...
5
votes
1answer
2k views

Detach screen in screen?

I like to have a screen session set up with two windows side by side (Ctrl+A | key combo). The issue is that sometimes I need to run a server that starts a screen session in the foreground of one of ...
3
votes
2answers
8k views

How to list all users that have terminal sessions, including screen sessions?

I would like to have a list of all users that are active on my Linux system, including those who have running but detached screen sessions. The who command only shows me currently logged in users, but ...
3
votes
2answers
2k views

Is there an application like screen but for GUI applications?

I'm running few projects at the moment, I'd like to switch between them without closing and reopening all applications. Is there a way to do so with some screen-like application? Only way till now is ...
1
vote
1answer
983 views

How do I get the F9 menu in GNU screen on Mac OS X?

Using screen on Mac OSX 10.7.1. Already applied various hacky fixes to get the home and end keys to work, changed the command key to left control key - however now I find the F buttons all do silly ...
1
vote
2answers
1k views

byobu in ubuntu always attaches to the same session

It used to be when I ran byobu I would get a new session with a new socket and I could open multiple windows in that one. Now when I run it it concurrently attaches to the same one existing byobu ...
0
votes
1answer
1k views

GNU Screen: Setting the default baud rate

Does anyone know how to set the default baud rate for GNU Screen? Currently I explicitly specify the baud rate when I open screen like so: $ screen /dev/ttyUSB0 115200 115200 is a magic number, and ...
1
vote
0answers
136 views

How to use cursor keys with a modifier to switch buffers in GNU screen

I want to use cursor keys with a modifier like Ctrl to switch between screen buffers (e.g. C-a [arrow] or C-a C-[arrow]). So far I have tried settings like the ones below with no success. bind ...
1
vote
1answer
208 views

Vim “* and ”+ in screen

I recently started using screen, and I am enjoying it quite a bit. The problem is, when I run vim from within screen, I can no longer seem to access the + register. It used to be, I could say "+dd ...
1
vote
0answers
431 views

LINUX [UBUNTU]: screenlog.0 - modify path

I have a screen command like this: screen -A -h 1500 -m -dmS SKY-001 /home/SKY-users/SKY-001/./ ... I'd like to start the output logging and save the screenlog.0 file to /home/SKY-users/SKY-001. ...
4
votes
1answer
220 views

linux 'screen' command - lowers process priority if detached?

If I run a program within a screen session, and then detach the screen - does the program have lower scheduling priority?
1
vote
1answer
211 views

How to divide screen within a bash script

I have made a short bash script that gets xml data using curl and sends some (it's a chat, in fact) regarding its given arguments. So I can either run the following : watch --no-title myscript and ...
3
votes
1answer
600 views

Write special chars in hardstatus of GNU Screen

I want write the next specials chars to hardstatus of GNU Screen: "↑" (up arrow) and "↓" (down arrow), but it shows strange chars. How can I do this? More info: This worked to me before but I have ...
2
votes
1answer
508 views

gnu-screen: Automatically run script when attach/detach session

I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session. Is there any way to configure screen to do that?
1
vote
1answer
201 views

How to disable input translation for some keys in GNU Screen?

I have Ctrl-Left and Ctrl-Right bound for vim, and would like to be able to use these shortcuts when vim runs inside screen. However, because of Screen's input translation my key presses are mangled ...
2
votes
2answers
14k views

how to reset /dev/ttyS0

I'm trying to connect to a Khepera robot using serial interface (running Scientific Linux 6.1) I used the command screen /dev/ttyS0 to communicate which worked OK, but then I wanted to close it and ...
4
votes
2answers
1k views

How to go past window 9 in GNU Screen without going to Window list?

I use GNU Screen tool to keep my sessions alive on the system. To switch between windows I use Ctrl+a N where N is the number of the window. I want to use similar keystroke to access windows with ...
8
votes
2answers
2k views

Can I name GNU screen sessions?

I use multiple sessions for different things. One for work, one for school work and one each project I'm working on. It gets really hard to keep track of the sessions when screen -ls returns ...
2
votes
2answers
206 views

Screen does not appear in list when using sudo

While under root user (printed by whoami), execution of sh -c "screen -d -m -S testscreen sh -c \"echo asd; echo qwe\"" creates a screen with two lines output, which can be reattached via screen -r ...
0
votes
1answer
244 views

Launch process in new window, whether GNU screen session exists or not

I'm having a bit of trouble with GNU's screen. What I want to do is this (from cron): If a screen session named cron exists, add a new window to the session and launch a process in it (but do not ...
8
votes
6answers
10k views

How switch between screen inside screen?

I have to work inside two environment. One Windows (local) and one Linux (remote). I've installed the screen linux utility in both. I'm able to open a screen on my windows, then in one tab, I opened a ...
4
votes
1answer
400 views

gnu screen - how to highlight searched text

While doing a reverse text search via " C-a[? search_string", I have to keep pressing 'n' to figure out occurrences of 'search_string'. Is there a configuration in GNU screen that can hihglight ...
0
votes
1answer
1k views

GNU screen, vim, and urxvt with 256 colours. gnu

I have defined urxvt*color0: #000000 urxvt*color8: #777777 in my $HOME/.Xdefault. Using vim (console not gvim), this gives me a light grey for strings in bash scripts when I use urxvt. ...
4
votes
1answer
2k views

How do I change the order of screens in byobu?

I'd like to bind Shift + ← and Shift + → to move my current screen left/right in the ordering of screens. How can this be done? These are the versions I'm using: $ byobu -v byobu version 2.68 ...
2
votes
2answers
2k views

How can I make sure my system uses the ~/.screenrc file?

My friend provided me with a rather detailed .screenrc which I put into my ~/ directory. I am pretty confident when I run screen it isn't utilizing the edits in the file. How could I confirm whether ...
0
votes
1answer
105 views

Reattaching GNU Screen session name with a common prefix

I have 2 screens with session names test1 and test19. When I try to reattach to test1 by typing screen -r test1 Gnu Screen cannot tell the difference and pops up 27082.test19 (08/10/2011 ...
1
vote
3answers
335 views

screen -x ignore utf8

I use screen and I use utf8 with this in my ~/.screenrc # utf-8 encoding utf8 utf8 defencoding utf8 ok. But, when I reopen screen with screen -x screen don't show the utf8 characters EDIT I ...
4
votes
1answer
315 views

Launch program automatically with screen/byobu using an alias

My screen starup commands look like: screen alias1 screen alias2 alias1 is an alias pointing to command1 alias2 is an alias pointing to command2. alias1 and command1 share the same name. alias2 and ...
5
votes
2answers
471 views

A “view-only” mode in `screen`?

One of my favorite modes for screen is using the -x option, wherein multiple users can connect-to the same session (great for team troubleshooting and training purposes). However, it would be really ...
1
vote
2answers
30 views

Goes to the start of the command in screen

After running a command that spits out a lot of output in screen. I drop to Copy mode and try to find where the command start. This becomes very very challenging when there are lots of lots of similar ...
1
vote
1answer
386 views

How can I use Control+` (grave accent) as my escape character for screen?

I've been trying to think of an escape character to use for screen that isn't already used by any of the programs I use, and I've settled on Ctrl+`. The default Ctrl+a is unacceptable for me because ...
4
votes
2answers
3k views

Run 'screen -RD' automatically after connecting from PuTTY

I would like to have PuTTY automatically run screen -RD when I log in, however I would like if possible, for this to be either configured as part of PuTTY, or for the server to identify when a PuTTY ...
6
votes
3answers
2k views

Mac Gnu-Screen doesn't load default .bash_profile

I have a bunch of custom settings in my bash_profile. when I use gnu-screen, I realized that my screens do not execute source /Users/disappearedng/.bash_profile. I try to put source ...
2
votes
1answer
326 views

GNU Screen: Visual indication of copy mode

When I enable copy mode in a window, I see "Copy mode ..." in the bottom line of the terminal. I configure screen to show the list of windows on the bottom. Now, when I switch to another window and ...
4
votes
4answers
12k views

How can I launch multiple screen sessions from a single bash script?

I've written a script (that doesn't work) that looks something like this: #!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done For some ...
3
votes
4answers
2k views

Running emacs inside screen

I have a screenrc file but I am finding some conflicts when I run emacs inside screen. For e.g, moving across buffers in emacs, Ctrl-right arrow/left arrow, instead of moving back and forth sends ...
20
votes
4answers
22k views

How can I view more of my history in Screen on Linux?

I was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in ...
2
votes
2answers
1k views

I would like to write a shell script/rc file that automates GNU Screen splits and starts programs within them

I would like to automate a scenario when I am working on a rails project, and I think screen is the perfect way to accomplish this without having to drag and drop multiple windows after every startup ...
1
vote
1answer
249 views

Running emacs in GNU Screen overrides .emacs settings for [home] key binding in FreeBSD 8.2

If I use the following .emacs file, I am able to go to the beginning/end of the current line using the home/end keys as I would expect. (keyboard-translate ?\C-h ?\C-?) (add-to-list 'load-path ...
1
vote
1answer
875 views

Screen and SSH Tunnel - How can screen session possibly die?

When I start my xsession I setup my SSH tunnel to my VPS. Here is the script the runs on login: matt@HY731AA:~$ more dotfiles/startssh.sh #!/bin/sh ssh-add ~/.ssh/id_rsa screen -dmS ssh /bin/bash ...
3
votes
1answer
1k views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...
2
votes
3answers
174 views

putting screen away?

I've just installed screen, what a great tool! But i'm having some problems. CTRL-A K kills a screen CTRL-D detatches from a screen but what are the difference? both results in loosing the screen? ...
1
vote
2answers
854 views

Pipe screen buffer to another command?

I can't seem to find anything on this so, is there a way to pipe everything from a screen window into another command. I have a server running in screen (not the best idea, but the only way for the ...
3
votes
3answers
643 views

In 'screen' (linux utility) windows, where is the .bash_history of individual windows?

I am using the linux-utility 'screen' (I mean the terminal multiplexer). In each "window" of screen, I am running bash. But these bashes do not seem to have any command history. For example, if I ...
1
vote
2answers
1k views

Debian: Kill a Screen session through the web

I have php code that is as follows (kill.php): <?php echo exec("/home/duke/aa/scripts/test.sh"); ?> test.sh looks like this: screen -S server -X quit If I run the php code in the terminal ...
9
votes
4answers
2k views

X equivalent of 'screen' utility

Under unix/linux, there is this extremely useful program screen: it's for bash, text-only, and I can detach a session, log out (the session is still running though), log in later (even from a ...