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].
0
votes
1answer
489 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 ...
3
votes
1answer
804 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
185 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
384 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 ...
3
votes
2answers
169 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?
-2
votes
1answer
141 views
Creating a backup script involving screens and java? [closed]
Hi guys I use centOS 64bit 5.7 and I need to create a backup script
What I want it to do:
screen -r example
command into java
pause for x amount of seconds
exit screen
zip/rar a folder which and ...
4
votes
1answer
901 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
221 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?
4
votes
3answers
7k 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.
4
votes
1answer
717 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 ...
2
votes
4answers
1k 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
353 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
237 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
298 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 ...
5
votes
2answers
8k 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 ...
5
votes
3answers
1k 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
84 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
142 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?
8
votes
1answer
454 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 ...
3
votes
2answers
350 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
180 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
102 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 ...
4
votes
1answer
602 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
314 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
194 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 ...
2
votes
1answer
943 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
311 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 ...
4
votes
2answers
390 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
3k 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
2answers
1k 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
1k 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
362 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
95 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 ...
2
votes
1answer
227 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
412 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
192 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, ...
17
votes
4answers
3k 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 ...
7
votes
2answers
5k 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
294 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 ...
2
votes
1answer
444 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
305 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
399 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
81 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 ...
45
votes
4answers
10k views
Tmux - move window to pane
How do I move an existing window into a pane in another window in tmux when I have multiple windows? And vise versa?
I'm coming from screen, where I can switch to the pane and then switch windows ...
5
votes
1answer
839 views
GNU screen: move between regions
I've started splitting window in GNU screen into different regions - rather than switching between windows.
Anyway, having split a window into 4 regions (2x2) it takes 3 C-a <Tab> to return ...
3
votes
3answers
4k views
sending text input to a detached screen
I'm trying to run a minecraft server on my unRAID server.
The server will run in the shell, and then sit there waiting for input. To stop it, I need to type 'stop' and press enter, and then it'll ...
4
votes
2answers
328 views
What are the virtues of multitasking with traditional job control vs Tmux/Screen?
tmux and screen let you run different processes (e.g. vim, a bash script, mysql, psql, etc) in different virtual windows. But traditional Unix job control (using CTRL-z, fg, bg, and jobs) seem to give ...
4
votes
2answers
644 views
Is there a way to run 'screen' in read-only mode?
I'd like to be able to check progress and output of my existing screen sessions, but in a read-only manner, so as to prevent something from going wrong due to user error. Is there a way to do this?
1
vote
4answers
733 views
How to prevent a program from dying when its ssh session dies?
I have a really old console application that I want to make a bit more resilient. The program is used this way:
the user uses a custom terminal emulator to connect to a remote machine through ssh
...
2
votes
2answers
221 views
Divorced input line in GNU Screen
Is it possible to divorce my input from the overall shell using Screen? What I'm aiming for is akin to a status line that expands if I type more than would fit within a single line and is ...