screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag [monitors].

learn more… | top users | synonyms (1)

2
votes
1answer
2k views

What's the difference between a screen being attached and detached?

[blah]$ screen -ls There are screens on: 16517.pts-0.blah (01/28/2012 01:55:32 PM) (Detached) 4345.pts-1.blah (01/27/2012 11:22:48 AM) (Attached) 2 Sockets in ...
5
votes
1answer
4k views

how to resize horizontally a screen region

I am using screen to split my terminals but I would like to be able to resize the horizontal dimension of the split screens. If I do C-a :resize 10 I only change the vertical dimension to 10 lines. ...
3
votes
0answers
131 views

What do you use to manage your shell history? [duplicate]

Possible Duplicate: Preserve bash history in multiple terminal windows Can I easily search my history across many screen windows? I rely on my shell history a lot, I use Ctrlr and arrow ...
19
votes
3answers
6k views

Shell: how to go to the beginning of line when you are inside a screen?

I am inside a screen (screen -Ra). I have a long command, and I am at the end. Instead of keeping the left arrow, how can you go to the beginning of the line? CTRL-A works when I am in a normal ...
2
votes
3answers
823 views

console vim in screen session: remap Ctrl-Shift-Left, Ctrl-Shift-Right to not delete lines

I have my gvim setup so that I can select word-wise with Ctrl-Shift-Right, Ctrl-Shift-Left etc. (yes, I know it's a bad habit, but it works for me..). Unfortunately, these key combinations delete ...
3
votes
1answer
460 views

How can I run byobu from xterm at starting?

I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ? (mate-terminal from Linux mint especially)
24
votes
1answer
27k views

How to recover a 'lost' screen session?

Somehow I managed to close a screen window without screen 'noticing' it, so the session is still flagged as attached. This prevents me from re-attaching to this session. What can I do? ...
5
votes
2answers
3k views

Screen status bar to display current directory for zsh/bash shell

I use GNU screen a lot with zsh as my shell. It would be a nice feature (I think) to be able to display the current directory name (not the full path) as the tab title. I can do that with CTRL+A ...
0
votes
1answer
669 views

Disable screen outputting “[screen is terminating]”

How do I disable the output when you are done with a screen from the screen command? Example: function foo() { echo "Testing..." sleep 2 echo "Done!" } export -f foo screen -q bash -c ...
4
votes
2answers
2k views

How to rename a gnu screen session

I am running a screen session and I'd like to change it's name. I know that when starting a new screen session I can use the '-S' option to give it a name. How do I change that name once the session ...
1
vote
0answers
266 views

how to focus different `regions`(Ctrl-a S) via mouse-click in `screen`?

When I start vim in a screen session, and activate the mouse: :set mouse=a the mouse remains disabled. I cannot switch tabs via mouse click. How can I configure screen so that mouse support in vim ...
2
votes
1answer
651 views

.ssh/config way to spectify pseudo-tty allocation and command execution (like screen)

Is there any way to specify, in .ssh/config, a command like: ssh -t remote-host "screen -dR screen_name" so I can easily access the remote screen session with ssh remote-host? Right now I solved ...
5
votes
2answers
349 views

How to do block selection in `screen`

In vim, there's a CtrlV to do block selection. How can I do it in screen?
8
votes
1answer
3k views

Force GNU screen to reflow to current terminal width on reattach?

I would like to force GNU screen to reflow to the existing terminal width when I reattach a session. It seems to me this worked properly before I upgraded a machine to CentOS 6, but I cannot figure ...
2
votes
1answer
518 views

How to move window in GNU Screen

I have a window called 'Codes' in window 1, and I want to move it to window 7, is it possible?
12
votes
4answers
21k views

How to split window vertically in GNU Screen?

I saw some body split their window to 2x2, I just want to know how to do that? I know the 'split' command in Screen can only split the window horizontally.
5
votes
1answer
1k views

GNU screen color and pine

I use GNU screen to run pine mail reader. I use external aspell to do spellchecking for the e-mails I sent. The problem is that when aspell finishes, pine restores the old content of the terminal, but ...
6
votes
4answers
5k views

tabs when using 'screen'

I am using Ubuntu 10.04. After I installed screen: sudo apt-get install screen I made two ssh connections to two remote servers by doing the following things step by step (I do the following steps ...
7
votes
1answer
598 views

Screen cuts off beginning of long command when accessed through bash history

I'm using the default versions of bash and screen in OS X Lion. When I'm in a screen session and I scroll back through the bash history and I come to a command that is long enough to wrap. I might ...
1
vote
2answers
298 views

screen : automatic creating or reattaching sessions in different configurations

What's clean way to achieve, following functionality: function screen_create_or_reuse(){ if [ running_screen_session "$1" ]; then reattach_screen_session screen_name_"$1" else ...
1
vote
1answer
424 views

After screen Reattaching, previous bash broken

After I reattach screen session : screen -DR already_attached_session My previous terminal is broken with broken bash: [remote power detached] Warning: Program '/bin/bash' crashed. I can not ...
6
votes
2answers
19k views

Increasing Screen Size/Resolution on a VirtualBox Instance of Centos

I have VirtualBox instance of Centos 5. The screen size is quite small (800*600) and I'd like to increase it to 1280*1080. Under the Gnome preferences for "Screen Resolution" I only get the option for ...
7
votes
3answers
4k views

nohup vs. Screen

In the past, I've used nohup to run big background jobs, but I've noticed that a lot of people use Screen in this context. Does Screen provide some kind of functional advantage that I am unaware of, ...
1
vote
2answers
104 views

How can I change the default action of C-a in screen to just a backtick `?

I tried something like escape ^` But that did not do it? I just want to change the default ctrl-a behavior. Also, is it possible to bind each numeric key (1, 2, 3, 4, 5) to change those specific ...
1
vote
1answer
235 views

Keep screen ratio while maximizing mplayer

I have a movie with a 1024x576 resolution while my screen resolution is 1280x800. How can I keep the ratio of 1024/576 while MPlayer is stretched to the whole screen?
9
votes
1answer
798 views

Why am I getting 'Name collision between …' errors and how can I fix them?

Every time I try to launch vim or emacs or even top (I think it's actually any command that uses ncurses) in a unix terminal (on a cluster computer over ssh), I get a a continuous stream of 'Name ...
4
votes
2answers
661 views

Screen: Resuming most recent screen? Making selection easier?

I have a couple of questions regarding screen: When I type screen -r, I get the following: There are several suitable screens on: 25154.tracks (Detached) 29278.mywork (Detached) ...
2
votes
2answers
316 views

Is it possible to detach a process started from one ssh session using another ssh session? [duplicate]

Possible Duplicate: How can I disown it a running process and associate it to a new screen shell? I started a process from one ssh session to a target machine T. The system from which I ...
1
vote
0answers
124 views

Getting better resolution on OpenSolaris.2009.06?

I am running OpenSolaris.2009.06 on Dell PowerEdge T410 server (x86 machine). It has Matrox G200 video card. Currently I am getting a maximum of 1024 * 800 screen resolution. There is no xorg.conf ...
6
votes
1answer
1k views

How do I highlight a search result in tmux?

When I search a terminal window in tmux, it sets the cursor the keyword search, but doesn't highlight the matching word. Screen used to do this, and it was much easier to visually find a match. ...
1
vote
2answers
992 views

How can I automatically run a script inside screen if the script is not in $PATH

I have a scenario where I need to cd into a directory before running a script: cd repos; python script.py But it should be setup such that it automatically runs when screen is started. So in ...
6
votes
2answers
250 views

Concatenate two screen sessions

Because of some server issues I ended up with two screen sessions, each with a few windows. I have long-running tasks in both sessions and don’t want to abort one of them just to get rid of one of the ...
3
votes
1answer
2k views

Showing GNU screen session name and window title in shell prompt

Is there a way to present the GNU Screen session name and window title in the prompt of the shell (let us say, the Bash prompt defined by PS1)?
3
votes
1answer
538 views

'Cannot open display' on restored GNU screen session

Using debian unstable with Gnome 3 but I think this has always happened. If I log out and then log back in again it seems the X session is restarted or in some way changed. In any case, when I start ...
5
votes
2answers
615 views

Lock a byobu session with password?

I used to leave my byobu sessions detached on a server. I want to lock the session to prevent other users (root account) accessing my session. Is this possible?
2
votes
1answer
4k views

Linux Mint Change Screen Resolution

I installed Linux mint 10.I have nvidia geforce 9500 GT.After installing nvidia-current package,my screen resolution become 800*600.There is no 1024*768 in Monitors menu. Running inxi -Gx shows, ...
3
votes
3answers
4k views

Killing multiple GNU screen sessions with the same name

Sometimes my script bugs out and multiple screen sessions with the same name get created. Is there a way to kill all of these with this name in one command? Rx:/scripts# screen -S haydoz-script -X ...
4
votes
2answers
2k views

Convert gnu screen status line to tmux status line

I am using the following screen status line, configured in my screenrc: I configured it using the following line: hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= ...
6
votes
1answer
792 views

Is there a way to show previous messages in screen?

When I use screen I can only see the current data on the terminal (commands, messages, etc.). Is there a way, apart from printing anything I want to a file, to see the previous messages (the same ...
1
vote
1answer
175 views

Return Carriage not working (Screen)

When I execute the command screen -S myscreen -X stuff $'search add $1 \015' from a shell it works perfectly. If I put it in a .sh file and run it as sh /test.sh variablehere it sends it to screen as ...
3
votes
1answer
460 views

How can I have screen transmit an audible bell produced in a background window?

I managed to replace the audible bell by a visual clue in the active window, but for background windows, can I get an audible bell instead of a visual notification ?
3
votes
1answer
598 views

Change screen “hardstatus” color dynamically

I show the hard-disk free space in hardstatus screen. But also I want change the color of this value when it's less than a value to alert me. I have done a script that it checks this and it returns a ...
2
votes
1answer
273 views

Cron & Gnu Screen - Trouble with detached screen [duplicate]

Possible Duplicate: sending text input to a detached screen I have a script for my Minecraft server that runs automatically every 15 minutes. The problem is that after a server reboot, ...
24
votes
4answers
6k views

Can mouse wheel scrolling work in a /usr/bin/screen session?

Is there any way to use the mouse wheel to scroll through the output of a screen session? I can use the keypad scroll through previous output in screen after pressing ctrl+a [. Is it possible to do ...
10
votes
2answers
11k views

How can I switch between ttys without using screen?

So lets say you boot up your linux install all the way to the desktop. You start up a gnome-terminal/konsole/whatever so you have a tty to enter commands to. Now lets say I SSH into that same ...
1
vote
1answer
410 views

How to resume multiple instances of Screen from command line with minimal steps?

I have about 15 instances of screen running on my linux server. They are each running processes I need to monitor. I had to close terminal (hence the reason I launched screen). Is there a way to ...
3
votes
1answer
814 views

How to run streamripper and mplayer in a split-screen X terminal, via a single script

I want to run streamripper in its own X Terminal (window), then split the terminal horizontally, and then run mplayer in the lower half. This is simple enough to do manually, but getting a script to ...
1
vote
2answers
470 views

Adjusting Screen Size on Ubuntu Virtualbox

When running Ubuntu as a Vitualbox guest, with a Windows 7 64-bit machine as host, how can I maximize the screen so it fills up the whole monitor?
9
votes
2answers
710 views

Prevent GNU Screen from closing

Is there any way to make GNU Screen not close if I end all its subprocesses? Ideally, it would create a new window running a shell if I accidentally closed the last window.
2
votes
1answer
93 views

Configuring screen, window problems

I Have recently started configuring "screen", I have included my .screenrc below. I have a problem that if windows 0 & 1 (containing bash) are idle for about 10 mins they will close only leaving ...