gnu-screen

Automatically (or more easily) reconnect to a screen session after network interruption

Deadly 提交于 2019-12-02 14:09:32
ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen completely transparently and automatically See also this related question: https://superuser.com/questions/147873/ssh-sessions-in-xterms-freeze-for-many-minutes-whenever-they-disconnect Original question: It would be nice if there were a way to ssh to a machine and immediately reconnect to a specific screen session. You can do this: laptop> ssh server.com screen -ls and it will show a list of screens available on server.com like so [1]: 123.pts-1 456.pts-2 And then you might try to do this: laptop> ssh server.com

Kill all detached screen sessions

随声附和 提交于 2019-12-02 14:04:24
When I execute screen -ls , I see the following. How can I kill all the detached sessions? There are screens on: 84918.ttys002.ros-mbp (Detached) 84944.ttys008.ros-mbp (Detached) 84970.ttys013.ros-mbp (Attached) 84998.ttys002.ros-mbp (Detached) 85024.ttys002.ros-mbp (Detached) 5 Sockets in /var/folders/86/062qtcyx2rxbnmn8mtpkyghs0r0r_z/T/.screen. Milind Shah screen -ls | grep pts | cut -d. -f1 | awk '{print $1}' | xargs kill Kill only Detached screen sessions (credit @schatten): screen -ls | grep Detached | cut -d. -f1 | awk '{print $1}' | xargs kill Here's a solution that combines all the

Screen command disable the control key ctrl-a to use it in vim?

ε祈祈猫儿з 提交于 2019-12-02 13:33:09
问题 I sometimes open vim with screen linux command but since ctrl-a is considered as control key I cannot increment numbers using the same combination inside the editor. I don't want to remap entirly ctrl-a but is there a way to disable it so I can use it in vim ? 回答1: In screen , you can pass on the prefix key via Ctrl-A followed by a (cp. here). In tmux , this would be Ctrl-b Ctrl-b . Either can be adapted in the tool's configuration file. Alternatively, you could remap the increment inside Vim

Unable to have no Scattered windows in Screen by .Xresources

余生颓废 提交于 2019-12-02 08:28:15
问题 Inital Problem: to have no scattered windows when I use vspilt in Vim inside Screen Attemps to solve the problem: Impossible: to increase the Display Refreshing Rate for Mac's terminal code to add something to .Xresources alt text http://dl.getdropbox.com/u/175564/bugWithScreen.png Unix Power Tools -book says that the problem can be solved in .Xresources. However, it does not specify exacly how. I have collected the following codes to my .Xresources mrxvt*scrollBar: true mrxvt*loginShell:

Unable to understand a code in .screenrc

不打扰是莪最后的温柔 提交于 2019-12-02 06:54:05
问题 I am not sure about the exact purpose of the following Rampion's code. It should apparently execute command(s) at the cursor position. # man-word.screen # prevent messages from slowing this down msgminwait 0 # copy word starting at cursor copy # I am not sure why we need this stuff " e " # open a new window that waits for a word to run man on # (and uses 'read' to pause on error) screen -t man /bin/sh -c 'cat | xargs man || read' # option -c seems to mean execute # feed that window the copied

Unable to understand a code in .screenrc

偶尔善良 提交于 2019-12-02 06:22:52
I am not sure about the exact purpose of the following Rampion's code . It should apparently execute command(s) at the cursor position. # man-word.screen # prevent messages from slowing this down msgminwait 0 # copy word starting at cursor copy # I am not sure why we need this stuff " e " # open a new window that waits for a word to run man on # (and uses 'read' to pause on error) screen -t man /bin/sh -c 'cat | xargs man || read' # option -c seems to mean execute # feed that window the copied word # be sure to enter '^M' as 'CTRL-V ENTER' and '^D' as 'CTRL-V CTRL-D' (in vim) paste '.' #

Screen command disable the control key ctrl-a to use it in vim?

佐手、 提交于 2019-12-02 05:13:04
I sometimes open vim with screen linux command but since ctrl-a is considered as control key I cannot increment numbers using the same combination inside the editor. I don't want to remap entirly ctrl-a but is there a way to disable it so I can use it in vim ? In screen , you can pass on the prefix key via Ctrl-A followed by a (cp. here ). In tmux , this would be Ctrl-b Ctrl-b . Either can be adapted in the tool's configuration file. Alternatively, you could remap the increment inside Vim, e.g. by putting the following into your ~/.vimrc : noremap <C-q> <C-a> You can remap screen to use a

Unable to have no Scattered windows in Screen by .Xresources

吃可爱长大的小学妹 提交于 2019-12-02 04:58:08
Inital Problem: to have no scattered windows when I use vspilt in Vim inside Screen Attemps to solve the problem: Impossible: to increase the Display Refreshing Rate for Mac's terminal code to add something to .Xresources alt text http://dl.getdropbox.com/u/175564/bugWithScreen.png Unix Power Tools -book says that the problem can be solved in .Xresources. However, it does not specify exacly how. I have collected the following codes to my .Xresources mrxvt*scrollBar: true mrxvt*loginShell: true mrxvt*syncTabTitle: true mrxvt*font: Monaco mrxvt*faceSize: 11 mrxvt*xft: True mrxvt*xftFont: Monaco

How can I list screen sessions by name?

寵の児 提交于 2019-12-02 01:38:40
With screen, I know I can name & re-attach to sessions by name: screen -S <name> screen -r <name> When I execute screen -ls I get a list sessions, but the name is not displayed. How do I see the names of my running sessions? When you do screen -ls , the session name comes after the TTY number. Here, I have three screen sessions running with the names dev1 , daemons , and dbconns : dev1:~$ screen -ls Your inventory: 16101.pts-1.dev1 (Multi, attached) 30265.daemons (Multi, attached) 1691.dbconns (Multi, attached) 3 Sockets in /tmp/uscreens/S-dstephens. 来源: https://stackoverflow.com/questions

How to get more than 40 windows in GNU screen under Debian [closed]

时光毁灭记忆、已成空白 提交于 2019-12-02 00:10:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am using the terminal program called screen, which can create several "virtual terminals" in a single "real" terminal (the words "virtual" and "real" here are quite relative, the "real" terminal can be a konsole tab as well, not necessarily tty1-tty6). The problem is that I cannot create more than 40 windows