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
0answers
401 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
3
votes
0answers
188 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 ...
3
votes
0answers
173 views

putty(vt100+ mode) + screen + emacs = no num keypad?

Putty (VT100+) mode GNU screen emacs The keys on the numkeypad no longer work. Is there any easy way to fix this? (I'm not familiar with customizing emacs settings, and prefer not to mess with .emacs ...
2
votes
0answers
216 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 ...
2
votes
0answers
87 views

Keep GNU screen from resizing

I found a few threads that dealt with screen resizing a terminal, but I'm looking to do the opposite. I want to run a screen session with a height of 4 to limit output (why I'm doing it is ...
2
votes
0answers
259 views

Terminal with session management and scrollback OS X

I use GNU Screen all the time in OS X, primarily running on the server side of my SSH connections in order to maintain persistence, while multitasking. The beauty is that if I get disconnected, all ...
2
votes
0answers
208 views

monitoring changes in windows of screen while screen is detached

It is possible to monitor windows in screen (I mean the terminal multiplexer called screen) with Ctrl-a M. However, I am only aware of the notification when I am looking at any window. What I want, ...
1
vote
0answers
8 views

Make serial gnu-screen send a line at once

Is it possible to send lines at once in linux screen utility, if used as serial terminal, like for example screen /dev/ttyACM0 9600? By default, every character typed is sent immediately, but my ...
1
vote
0answers
16 views

Follow current window in screen -x

Using screen -x (after connecting over ssh) from a second computer is a great way to follow what someone is doing in a terminal. However, if the first person changes the screen window (C-a p or C-a ...
1
vote
0answers
37 views

Gnu screen, using the exec command in .screenrc

I have added the following lines to my .screenrc bind -c music u exec amixer sset Master,0 5+ >& /dev/null bind -c music d exec amixer sset Master,0 5- >& /dev/null bind -c music t exec ...
1
vote
0answers
39 views

Get command output from detached screen

I am running a detached screen session, and running a command into it with screen -x, like so: screen -S $SESSION -X <command> This works fine, though I would like to be able to catch the ...
1
vote
0answers
41 views

Why when I run a program in a detached screen section it became very slow?

I am not so into Linux and I have the following situation related a strange behavior of the screen command. The situation is the following one: one a RaspBerry Pi I have installed Raspbian (that is a ...
1
vote
0answers
92 views

Creating multiple screens in a for loop to run parellel programs and sending commands to each

Before flagging this questions as redundant, i have read and tried every answer to similar questions with no success I have this loop where it traverses a directory structure, and runs a program ...
1
vote
0answers
41 views

GNU screen lost encoding settings after detached and reattached

I set the defencoding and encoding in the .screenrc, defencoding GBK encoding GBK GBK After I detached and reattached the session, the encoding settings don't work. screen -r -d -S session How ...
1
vote
0answers
69 views

Running vncserver from screen

At work, we use VNC to run a graphical session on a remote Linux server from Windows-based client laptops (sigh). I have a laptop with a much lower resolution than the external monitor on my desk at ...
1
vote
0answers
69 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 ...
1
vote
0answers
610 views

using screen with start-stop-daemon, sysv

I'm trying to run a program with an ncurse interface as a daemon using screen. I want to use start-stop-daemon to manage the process, but I'm having trouble creating a SysV init script. Variables: ...
1
vote
0answers
378 views

GNU screen and PID namespaces

I have GNU screen running in LXC container, thus having private PID namespace. I'm trying to attach to that screen from "outside" the namespace. Both screens share filesystem, thus are able to access ...
1
vote
0answers
94 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
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
0answers
398 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. ...
1
vote
0answers
230 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
0answers
187 views

$HOME is forgotten only when a remote SSHed “screen” session is detached

Whenever I detach my remote "screen" session and ctrl a-c a new window, it opens the new window with "/" as the PWD. Another extremely annoying problem is that whenever the "screen" session is ...
1
vote
0answers
189 views

gnu screen on redhat enterprise, %H doesn't output hostname

I've had a screenrc that has worked for years on multiple boxes caption always "%{kW}[%H]%{Wb} %-Lw%{kY}[ %n %t ]%{-}%+Lw %=%{kW}[%D %Y %m %d %c %]" I've put my trusty .screenrc on a new box, and ...
1
vote
0answers
66 views

locating a screen session within multiple desktops

I've usually got a lot of stuff on the go, including 10 or more screen sessions. I also have a lot of desktops set up. Sometimes I want to find a particular screen session among the many desktops. ...
0
votes
0answers
13 views

Mouse works erratically/intermittently over remote SSH

I work remotely sometimes. I’ll use Vim inside a Screen session, over SSH. I use the mouse in Vim. Sometimes the mouse breaks. One of these things happens: Random characters get inserted into my ...
0
votes
0answers
21 views

gnu screen not to change my window titles

I set meaningful names to new windows I create in gnu screen, but then when I 'cd' or open vim that name gets changed to 'pwd' for instance. Is there a way to prevent screen from changing the title? I ...
0
votes
0answers
8 views

How to hide/unhide a particular window in screen?

Is there any command or hack to get such a behavior? Or is there a better way to get what i want(taking the unused window out of context temporarily instead of killing it) instead of this ?
0
votes
0answers
23 views

How can I automatically run two commands in different screen windows with an argument?

My process is ctrl+a 0 command $1 ctrl+a 1 /join#$1 I'd like to shorten it down to one command.
0
votes
0answers
27 views

Screen vs. socat

There is already a question: Screen fails to release pty and there is no answer (only a workaround has been provided so far). My case is different and I would like to know the answer to the original ...
0
votes
0answers
17 views

Incosistent behaviour of GNU screen when run from local machine or ssh

I have noted the following incosistent behaviour of screen. I run screen -dmS test screen -S test -X stuff "ls -lh^M" The first line starts a screen session named "test", and the second line ...
0
votes
0answers
20 views

screen wiped after chmod 755 to screen session

# screen -ls There are screens on: 22667.abc (Detached) 20128.tmp (Detached) # screen -r 22667.abc It just hanged, and I executed ctrl+Z to terminate and find another ...
0
votes
0answers
16 views

GNU Screen stops transmitting Ctrl-s

I am accidentally activating a feature in Screen that stops Ctrl-s from working properly. When this happens I can't C-x C-s, save or C-s, search in Emacs until I C-a C-k, kill the screen. New ...
0
votes
0answers
21 views

If screen's C-a A command does not work, what internal state must be wrong?

In the Linux command screen, you can type C-a A to change the name of a window. Right now I am running a screen session with six windows. The first four have custom names - great. The last two I want ...
0
votes
0answers
54 views

How to prevent terminal bell from going off when exiting vim from within a nested screen session

My vimrc file contains the following lines to set the window title start and end strings respectively. When I enter a vim session and my konsole terminal is either outside of screen or within a ...
0
votes
0answers
96 views

how to show battery percentage on gnu screen hardstatus line

I currently have this as my hardstatus last line on gnu-screen the ~/.screenrc entry is as follows (just incase someone want something similar) hardstatus alwayslastline '%{= g}[ %{G}%H %{g}][%= ...
0
votes
0answers
70 views

Strange behaviour of vim inside of gnu-screen

I use screen a lot and inside one of my screen windows, I use vim a lot. I have, however, sometimes, some strange behaviour of vim: After a while of using vim and switching forth and back between ...
0
votes
0answers
49 views

Get growl notifications from within a unix screen which is not in focus from a remote SSH session

Using iTerm2 I have growl notifications working within a (unix) screen session on remote servers when that window has screen's focus: My server's ~/.bashrc has: growl() { local ...
0
votes
0answers
61 views

Reload user group assignments inside tmux (or byobu/screen)

This question handles reloading group assignments without logging out, but it doesn't really treat a situation where you want the group assignments to be reset inside an existing tmux (or byobu or GNU ...
0
votes
0answers
67 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
0
votes
0answers
75 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
0
votes
0answers
45 views

Why using 'screen -r' on remote host changed my terminal background color?

I have a custom vim color scheme on the remote host. Today I found after I using ssh to connect to the remote host and resume my screen process with 'screen -r', everything I wrote in the vim editer ...
0
votes
0answers
39 views

Connecting to ssh and using screen not working properly

I used once ssh -t <login@server> screen -R to connect to a server and everything worked fine. I used the terminal in the server to execute an script and then detach the screen. I came back ...
0
votes
0answers
209 views

GNU screen mirroring (-x) with different size monitors/resolution

I'm using "screen -x" to mirror screens across two systems at the same time, but I seem to have an issue with resolutions. On most of my screen windows, the top portion (or bottom) is cut off when I ...
0
votes
0answers
25 views

How can I start multiple screen windows side-by-side inside one screen instance automatically?

I want to have a desktop/keyboard shortcut that opens a terminal running a screen session that displays top in the upper 60% and iostat in the lower 40%, and possibly pidstat, too. Is that possible? ...
0
votes
0answers
40 views

Increasing scrollback for screen in putty

I use screen a lot. Whenever I scroll up, I see that there is the screen command I used to reattach to the screen. I was wondering if we can increasing the size of scrollback for screen from screen ...
0
votes
0answers
89 views

prohibitive keymapping with putty, gnu screen and vim

I'm logged in to my Debian machine using putty. I have a GNU screen session open and I am running vim in it. the problem I have is that when I go to save the file using :w<enter> this appears to ...
0
votes
0answers
72 views

Gnu Screen rebounded control sequence, switch to last-visited window broken

First time questioner here, so please point out the errors I make. I configured my gnu screen so that the control sequence wouldn't collide with emacs: My .screenrc: # Bind control sequence key to ...
0
votes
0answers
25 views

Run screen splitted and specify commands for each windows?

Ubuntu 12.04, I would like to run gnu-screen already splitted in two regions and with certain commands in it, I have found that in new version of screen there are -Q argument, but I still dont get how ...
0
votes
0answers
31 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 ...