Questions tagged [gnu-screen]

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.

150 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
2k views

Quick switching between screen sessions

Suppose that I have two screen sessions (screen_session_a and screen_session_b), both of which have several windows (window_1 to window_n). The hierarchical layout looks like this: +--+ ...
4
votes
0answers
143 views

gnu screen: automatic session on split

Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region. Is it possible to make new ...
3
votes
0answers
792 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.
3
votes
0answers
299 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
3
votes
0answers
859 views

Automatically renew kerberos tickets in GNU screen

I have a program (which I cannnot modify) which runs for > 1 day. I want to start it via SSH in GNU screen and detach then. The remote is a Fedora system using a Kerberos-based file server on which I'...
3
votes
0answers
2k views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
3
votes
0answers
990 views

Read output in `screen` from outside

Suppose I opened up a screen to run some program that outouts some result. Once the program finishes, is there a way to get the result in the screen from outside. For example: I opened up a screen ...
3
votes
0answers
344 views

Screen reptyring screen

Having recently discovered reptyr, my first action was to do everything I could to break it. This included reptyring screen into a screen session as follows: $ screen My zshrc cats some stuff here. $...
3
votes
1answer
524 views

Convert screen log to html

I would like to log actions made in a terminal window, and convert the log to html on fly. I already tried commands script/screen + ansi2html, but the result is not perfect: the escape sequences for ...
3
votes
0answers
486 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
3
votes
0answers
256 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi PS1="\...
3
votes
0answers
70 views

Can I avoid screen from creating inner screens?

I just started using screen and "screen inception" makes learning screen even more confusing. Can I avoid screen from creating screens when I'm already inside a screen? I'm using fish as my shell if ...
3
votes
0answers
2k views

How to efficiently use Console2 with screen/tmux/byobu?

I'm using Console 2 and msysgit's bash to SSH into my Linux machines. There, I'm using screen (but considering tmux and/or byobu), but currently simply with one single-terminal session per Console2-...
3
votes
1answer
167 views

How to set unbuffered IO in `screen`?

I use screen as a minicom replacement, but the only problem is I don't get all output immediately, because of buffering. Is there a way to turn off buffering for screen?
2
votes
0answers
36 views

Python open screen and execute inside screen

I have a py script S1 that I would need to execute inside a screen. On an end-user point of view, I would like them to just execute another python script S2, which will open a screen and execute the ...
2
votes
0answers
44 views

Redirect all keyboard input to a detached screen session

I'm trying to build a headless system using a Raspberry Pi; I have two programs runnning on it, one to catch all the input from a barcode reader (a simple keyboard emulation device) and one to display ...
2
votes
0answers
164 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
2
votes
0answers
42 views

Stuffing text into a screen tab only after the shell has loaded

I'm setting up my screenrc to open several tabs and already insert commands such that I only need to press enter to start some process. Here's an example screenrc: screen -t test stuff hello ...
2
votes
2answers
526 views

Screen loses permissions after ssh disconnection

I have a long running bash script that I run on a remote host with screen, so I can log off ssh. When I come back after some time (after logging off), the screen terminal no longer has permissions to ...
2
votes
1answer
627 views

How to extend columns when export COLUMNS doesn't work

UPDATE: it appears to be related to GNU screen and termcap: see new clues at bottom. I'm running Bash 4.3 on a small embeddable device, and having a problem convincing it that I have more than 80 ...
2
votes
0answers
52 views

GNU screen freeze session if SSH is not connected

I have a dedicated server (Inmotion) running a Java XMPP server through a screen session to keep it alive. Sometimes, after a long period, the execution of this Java XMPP server freeze and then when I ...
2
votes
1answer
642 views

Linux Mint - Glitch in Screen Recording video files

I am new to Linux, and most things seem to work fine; but it is not the case of Screen Recording. I have tried with the following programs: OBS Studio Voko Screen Kazam And I have tried with the ...
2
votes
0answers
214 views

Run server program and allow user to attach to it using SSH

What I'm trying to do is run a program at startup (a game server in this case, started using systemd) and allow a specific user to remotely "attach" to it using SSH. Currently I have it set up to ...
2
votes
0answers
726 views

Send data to a serial port via screen

I've connected to a serial port via screen /dev/ttyACM0 and can read the input, but can't see the text I'm typing and nothing is being sent after I press enter. Is it possible to send data from ...
2
votes
1answer
56 views

Sending a text from script to a screen

My whole task sounds like this "Show how many users are working right now, whenever someone has logged out or has logged in, print the new amount of users. Create a new screen and print there text ...
2
votes
0answers
174 views

Start detached screen session with more than 80 columns?

Does anyone know a way to change the default 80 columns width when starting screen in 'detached' mode (screen -dm) ? Smart curses apps like htop handle resizing when attaching from a wide terminal ...
2
votes
1answer
370 views

Prevent “Screen” session weird characters

Logged into a screen session, when I press Backspace, Del, Down, Left, or Right while there is nothing for those keys to do, then a weird character appears that does not affect the input. The ...
2
votes
0answers
931 views

Byobu - New window with same ssh session?

Is there a way to configure Byobu to use same ssh session in a new window. For e.g. Open Byobu window ssh into a remote host Press 'F2' to open a new window. This opens the terminal with my ...
2
votes
1answer
1k views

Filter screenlog with screen command

Pressing Ctrl+A, H, lets me log output of the screen command. However, the output file is too large. Is it possible to apply a grep-like filter so that I can control what gets logged? For example, I ...
2
votes
0answers
736 views

Capturing screen of “perf top” or other interactive programs

I'm trying to write a script to capture output of perf top Similar to top, perf top detects the screen size and fill information to the screen. But sadly unlike top which has a batch mode, perf does ...
2
votes
0answers
134 views

Screens die even though process is still running

I have a problem with running an irssi in a screen session on a tomato usb router setup. Screen reports session as dead, even though the process is still running (both for screen and irssi) Screen ...
2
votes
1answer
943 views

VT100 terminal emulation to use with a Java-based 8-bit computer emulator

I'm successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is: screen -istrip /dev/ttyUSB0 Screen does the ...
2
votes
1answer
304 views

GNU Screen Caption

I have this line in my .screenrc file: caption string " %{kw}%-w%{ky}%n-%t%{-}%+w" This is the caption output, where 0 is the active screen: 0-bash 1 bash 2 bash How do I customise %-w and %+w ...
2
votes
0answers
153 views

screen toggle windows doesn't work with custom command key

I've been using GNU Screen for a while now, but I prefer mapping the command key to something other than C-a, as I use that to go to the beginning of a line. For a while now, I've been running screen ...
2
votes
1answer
1k views

My bash prompt is not working in `screen`

On RedHat, screen resets my bash prompt. I set PS1=\u@\h:\w in ~/.bashrc and ~/.bash_profile. I added shell -$SHELL as well to ~/.screenrc. But, when I open a brand new terminal window, the prompt ...
2
votes
1answer
1k views

GNU screen startup is really slow

I connect to a RHEL 5.7 server via Putty or VNC (not sure it matters) but when I try to run screen, it takes forever (on order of 20-30 secs). Same thing if I run screen -ls, takes just as long. I ...
2
votes
1answer
775 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
1
vote
0answers
20 views

How does gnu screen re-index the window id after the kill window, ensuring that the window id is always incremented continuously?

After gnu screen kills a window, the id of the following window is discontinuous. Chrome's tabs use Ctrl + 1 through Ctrl + 8 to switch, digit is the current actual order of the tabs, not affected by ...
1
vote
1answer
43 views

How to save command line screen output in Linux after running program?

I ran a program that has a good amount of command line output, and it ran on a screen in a ssh server. I referred to this post so that I can scroll through the screen and see the output, but there is ...
1
vote
1answer
58 views

Make usual programs use the alternate screen

This has been annoying me for ages. Even though I use a modern terminal emulator and most CLI programs, such as less and vim, are able to use the alternate screen adequately (i.e. entering it on ...
1
vote
0answers
18 views

the easiest way to see a grid of many workspaces on the large screen

I have Mint/ubuntu and screen of 4K. is an extension to turn on 4 workspaces to be visible at once? alternatively any tool, which supports grid layout for ubuntu For example: windows are pinned/...
1
vote
0answers
12 views

Possible to use screen loopback to create virtual 300bps session?

I came across this answer here explaining how to set the bit rate in a screen session. The answer is applicable to serial connections. It came close to what I needed to do, but not quite. I'm ...
1
vote
0answers
85 views

Ubuntu 18.04 with Multi-touch screen can't single click

The problem I have is that my touchscreen registers 2-3 mouse clicks per second when I tap the screen. It continues registering clicks if you hold your finger down. Rather than producing a single ...
1
vote
1answer
14 views

GNU screen keeps changing window title on start & exit of vim

My status line in screen is: hardstatus alwayslastline "%{= Wk}%-Lw%50>%{= BW}%n%f* %t%{= Wk}%+Lw%<" This always shows a list of windows with their names. I have also bound C-a T to set this ...
1
vote
0answers
26 views

How to clear DISPLAY variable in GNU screen

Basically, i need to unset DISPLAY variable in screen if I run multiple commands like: screen -dmS name bash -c 'kodi; unset DISPLAY; emulationstation' I'm writing a little something that will ...
1
vote
0answers
95 views

How to Attach Screen Sessions that were Split

I am working with screen and I am having a hard time with reattaching sessions where I split the screen within one session. Is this even possible? I have tried searching for it on here and google ...
1
vote
1answer
37 views

Desktop environment that raises terminal with gnu-screen instead of starting new one

I want to start a gnu-screen session, in a terminal, from gnome. I wrote the following desktop file [Desktop Entry] Version=1.0 Name=Screen Comment=Use the command line Keywords=shell;prompt;command;...
1
vote
0answers
73 views

Detached GNU screen session unexpectedly killed upon terminal close

I am using GNU screen for years now on several servers with the same configuration and never ran into this strange problem: After connecting to the server via SSH I start screen (without options). ...
1
vote
1answer
75 views

Get a list of children process ids (PIDs) running in a screen session

How can I run a command that lists all PIDs of the processes running under a certain screen (suppose multiple bash processes are running, because I have opened multiple tabs)?. I found the following ...
1
vote
0answers
34 views

How to keep screen running after exiting the command that runs in it?

I have the task to start a detached screen session (e.g. when the system reboots) and then to be able to connect to it and interrupt/kill the running process without the screen to terminate. ...