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

1
vote
1answer
43 views

See entire output of process in 'screen'

I am running a script in screen, which takes several days to run. Occasionally, I log back in to check the output, and I'd like to see the output during the times I did not have the screen attached. ...
1
vote
2answers
144 views

Fish shell syntax highlighting looks weird in byobu-screen

When I am in plain fish shell, a command is highlighted like so: but when I am in byobu-screen and type the same thing, I get: When I do a fish_config and look at my color palette, nothing is ...
0
votes
1answer
56 views

How to bind exit to a key?

When I am using screen, every time I use kill, it prompts a confirmation and ask me whether to really kill (which I really do after pressing so many keys). To get around this I type exit instead. But ...
0
votes
1answer
87 views

Remove vertical split bar of a termincal multiplexer, vacating the space instead of hiding it

For the last decade I usually work in a full-screen mode terminal emulator (often xterm), and often with vertical split. The recent GNU Screen offers vertical split with ctrl-a |. 1280×720 offers 160 ...
1
vote
1answer
71 views

why does screen cause problems with sftp?

I love to use screen, but I haven't really had much experience using it over ssh. At work I recently was issued a shell account and I decided to try to configure it so that screen gets run when I ...
2
votes
1answer
26 views

GNU Screen: deleted directory screen was started in

I started screen in a directory I since deleted and every time I open a new window I get the following error: shell-init: error retrieving current directory: getcwd: cannot access parent ...
1
vote
0answers
36 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
1answer
41 views

Launching GUI apps from GNU screen on OS X

On OS X 10.9.1, when I try to launch GUI Apps on OS X from within a GNU screen terminal, the app simply hangs without showing a window. Launching the same app from a regular terminal outside screen ...
0
votes
0answers
39 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 ...
1
vote
2answers
114 views

Echo to screen session and to file

I want to execute the following command: echo $RANDOM 2>&1 >> test.txt in this screen session: screen -S test -X eval 'stuff "echo $RANDOM 2>&1 >> test.txt\015"' ...
2
votes
1answer
25 views

Placing an “anchor” in GNU Screen

Usually, especially when debugging code, I have the code spit out a ton of data and since I'm using GNU Screen, I scroll back through the output to see what I need. But it's not always easy to find ...
2
votes
1answer
122 views

Vim not colouring the end of lines when run inside screen

When vim is started inside of gnu screen it does not colour the background after text. Screen looks like it should be setup for handling 256 colours correctly: $ screen $ tput colors 256 $ echo ...
1
vote
2answers
158 views

VIM/Screen background color is inverted for non-text characters

I'm trying to use a vim while inside a screen session. For some reason, the background color for the parts of the screen without text are displaying as dark while the parts with text are displaying as ...
0
votes
1answer
344 views

How to persist `gnu screen` layout after restart

I am using the screen split in 3 with vim on the left, and two other screens split horizontally on the right. I know that when detaching from a screen, I can save the layout with :layout save ...
1
vote
1answer
87 views

PATH not set in GNU Screen, OS X 10.9

I'm not a regular user of screen but every few weeks I use for some delicate tasks. However yesterday when starting I was unable to execute any command (ls, ssh, mkdir), quick debugging revealed that ...
0
votes
0answers
83 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
1answer
187 views

Gnu Screen: “type” in all windows at once

I read this question on SO about the stuff command in screen. It's pretty useful, but I wondered if there was a way to actually interactively type into multiple windows at once? - stuff seems to be ...
1
vote
1answer
413 views

install screen from source code

I tried to install the screen command on RedHat from source code. But when I run the configure, it returned configure: error: !!! no tgetent - no screen So does anyone know how to fix it?
1
vote
1answer
654 views

screen returns [screen is terminating], but never terminates

I recently ran into an issue on my Ubuntu 12.10 server that I can't seem to find a solution for. From my server I run a couple of Minecraft servers on different ports, usually to start the servers I ...
1
vote
1answer
181 views

How do I use shellscripts for rails with 'screen'?

I've recently started Ruby on Rails development, and I'm using Vagrant as a VM to contain my Rails project, because Windows is a terrible OS to use for any sort of Ruby development, due to the ...
0
votes
1answer
75 views

Navigating multiple screens in Linux

I'm in a Linux terminal and created multiple screens. When I try screen -list, I get the following: prem@ubuntu:~$ screen -list There are screens on: 5110.work1 (11/15/2013 02:01:53 PM) ...
1
vote
1answer
158 views

Tab title is wrong with ssh/screen on osx

I am doing ssh -t host screen -D -RR in OS X (10.9) terminal tabs. My ~/.screenrc is identical on all remote hosts and contain the following line: hardstatus string "%H(%n:%t)$USER %h" My ...
1
vote
2answers
1k views

How can I start new window in the same screen session automatically?

I read How can I start multiple screen sessions automatically?, but I don't understand the first accepted reply: screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" In my case I need to ...
0
votes
1answer
92 views

gnu-screen does not clear all its contents upon leaving it

I am using screen in bash under CentOS. After leaving a screen with Alt-a d, I am back in bash as expected. But there are remnants of the screen output left, in particular the status line (don't know ...
1
vote
1answer
612 views

Screen sessions getting killed but processes still live on and run

This is a weird situation I've run into. We have a test server off site (or off site from where I work). To access the server, I need to VPN into its network. I ran screen to execute a long running ...
1
vote
1answer
95 views

list screen window number bash

I was wondering if there is a way to get which window number of screen that is active? As in: screen -X get-window-number I have found no way to list screen windows to output, only the actual screens. ...
0
votes
1answer
75 views

GNU Screen - String Escapes

Can somebody please explain or point me to good tutorial about "String Escapes" used in ~/screenrc. I am playing with $PS1 and ~/.screenrc. While $PS1 seems pretty clear (colors, conditions, escape ...
1
vote
1answer
713 views

how to paste from byobu's screen buffer (ubuntu 12.04 64bit)

I'm running byobu in gnome-terminal, under ubuntu 12.04 64bit. and trying to copy a screen buffer. i.e. by hitting F7, byobu entering "copy mode", then mark screen text by space key. the question ...
1
vote
4answers
638 views

Windows powershell screen equivalent

I am using a windows machine as a ssh server. I want to remotely run some tasks which takes several hours to finish. Is there any way to have persistent process even after remote ssh session is ...
1
vote
0answers
67 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
1answer
43 views

How to execute a given command in a new screen?

I wish to rejoin an existing screen (there is only one on my system) kill window 6: screen -r -p 6 -X kill and execute the following command in a new window: cd /opt/stack/neutron && ...
-5
votes
1answer
115 views

Which is the modern front end to use for screen?

Looking for something that SHOWS opens screens and allows reattachment. Just one of many examples: root@helium:~# screen -r There are screens on: 32159.pts-1.helium (08/15/2013 03:11:54 PM) ...
0
votes
1answer
302 views

GNU screen quitting — sigterm to running process

I want to quit screen session. For this, I use screen -S session_name -X quit. This works well, but not like I would. The program running in screen has a handler for SIGTERM, and I really need this ...
1
vote
2answers
73 views

How to change the default command character in linux screen from cntr+a to cntr+t

I have been using screen in Linux and in some systems I get the default command character in Ctrl+T, but in others I get Ctrl+A. How can I change the configuration in those with Ctrl+A to Ctrl+T?
4
votes
3answers
1k views

GNU screen: change focus in split windows with mouse

Is there a way to enable proper mouse support in GNU screen so that I can switch the focus between split windows using my mouse? In other words, I'm looking for a mouse-driven alternative to typing ...
0
votes
1answer
1k views

Linux Debian Screen is terminating. Can't open screen

I use PuTTY to connect with my VPS server that runs on Debian 7.0 When I try open screen by screen -S {screenName} after enter there's just info [screen is terminating]. It happens on all ...
2
votes
2answers
683 views

Transfer current command to a detachable session (tmux/screen)

I'm currently running a backup and it now needs to be transferred to detachable one like on tmux/screen. Is there a way to do this when the command is currently running? I can send the command the ...
0
votes
2answers
160 views

How can I stop GNU screen killing my terminals on remote detach?

When I start screen in one terminal with $ screen -R foo and then remotely power-detach from another terminal with $ screen -D foo my first terminal dies. (Meaning, if I run it from ...
0
votes
1answer
134 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
0
votes
0answers
68 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 ...
2
votes
1answer
256 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 ...
3
votes
1answer
440 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
599 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 ...
2
votes
0answers
172 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
1answer
546 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 ...
1
vote
2answers
2k views

how to remove a screen (detached sessions) in unix?

I have been working in different screen sessions in past projects , hence have a few screen sessions accumulated. Now i have been asked to remove excess/unrequired screen sessions from the unix box. ...
0
votes
1answer
273 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
89 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
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 ...