gnu-screen

Kill detached screen session

I learned from somewhere a detached screen can be killed by screen -X -S [session # you want to kill] kill where [session # you want to kill] can be gotten from screen -ls . But this doesn't work. Anything wrong? What's the correct way? ...

how can I make vim send command to gnu screen session

I am trying to figure out how to script vim to send a message to a gnu screen "window". i.e. I have a screen session open and in one window I have a vim session and in the other a scheme interpreter. When I save my vim session I would like it to restart the interpreter in the other window loading in the new environment. I can figure out ...

How to make GNU Screen start a new window at the CURRENT working directory?

By default, when you create a new window in GNU Screen, it will start in the directory where screen is invoked. I want to start a new window in GNU Screen at the current working directory of the window I'm currently in. How to do that? Thanks! ...

gnu screen - changing the default escape command key to ALT-X?

In GNU screen, I want to change the default command binding to Alt-s (by tweaking .screenrc) instead of the default C-a, the reason is I use emacs hence GNU screen binds the C-a key, sending "C-a" to the emacs becomes tedious (as @Nils said, to send "C-a" I should type "C-a a"), as well as "C-a" in bash shell, and I could change the esca...

VIM Colorschemes in Screen & PuTTy?

Hey guys I've been trying to get colourschemes to work properly in VIM when using it over ssh with PuTTy as a client but unfortunately I haven't had much success. I can only get 8bit colours working with PuTTY even though I've enabled 256 colors in putty and set t_Co=256 in VIM. They don't turn out as they should. I've been trying to re...

vim screen restore

Hi, i use vim in screen for development and if i quit vim, the current screen-content stays there... outside the screen (xterm), exiting vim will restore the previous buffer (like: [ server1 ]~$ cmd some stuff, some stuff [ server1 ]~$ cmd [ server1 ]~$ cmd ) But not inside screen. I tried to use xterm as terminal inside scr...

Set screen-title from shellscript

Hi, is it possible to set the Screen-Title with an shellscript? i thought about something like sending the key commands "Strg+A Shift-A Name " I searched for about an hour only how to emulate keystrokes in an shell-script - but didnt find the answer. Thanks for Help! Beerweasle ...

How to stop process in GNU Screen

after I run ping command under the screen, I want to stop ping command, but when I press ctrl c , the screen is also terminate. how can I stop the command but not leave the screen session? I run screen in ubuntu 9.10(karamic) ...

Starting up a screen (unix command) + running a command  in 1 command?

Hello. Was wondering how I can start up a command such as: while :; do ./myCommand; done; But instead of doing the usual screen -S nameOfMyScreen Then the command while :; do ./myCommand; done; Then detach the screen ^a ^d (Control "a" the control "d" I would like it to start and detach. Thanks! ...

pbcopy does not seem to work within a gnu screen window in OSX

On my OS X Leopard Macbook Pro, I try to pipe text or redirect a text file into pbcopy. It works when I do this in the Terminal, but not if I do it in the Terminal when I'm working in a Gnu screen window. Is this a bug or is there a workaround? ...

gnu screen: can you automatically name a window after the last invoked program?

Is there a way to automatically have each window change its name to the name of the last program you ran from that window? This would be more convenient than having to rename the windows manually. ...

GNU Screen: Changing Global Key-binding

Hi all, I've recently started using screen in remote sessions. One problem is that emacs doesn't recognize its C-a and I don't want to bind emacs C-a to something else, as I'm very used to it. Google shows ways to change every keybinding individually using ~/.screenrc but not how to change a keybinding globally. I want all C-a to ch...

how do you script gnu screen from within a screen session to open new windows and run commands in them?

From within a screen session, I'd like to run a shell script that opens a few new screen windows in the same session and start running some programs in them. I need a script like this: screen -t newWindow [switch to newWindow and execute a command] screen -t newWindow2 [switch to newWindow2 and execute a command] I don't know how to ...

When using vim or less in gnu screen, quitting vim or less leaves a lingering imprint

On my new Ubuntu system, I start a screen session and edit a file in vim or view it in less. After I quit, the screen doesn't redraw itself, but simply scrolls up to show a command line under all the stuff I was just viewing in vim or less. How can I change this so that quitting vim will return me to the screen the way it was before I ...

Vim Ruby syntax coloring messes up terminal colors on exiting vim in Gnu Screen

I fire up Gnu screen and start editing a Ruby file with syntax coloring on and choose a vim colorscheme that uses boldface and a colored background (e.g. evening). Then I quit vim. The terminal doesn't return to the way it was before, but takes on some of the properties of the colorscheme I was using in Vim. This doesn't happen if I'm u...

How can I quickly close multiple VI instances in different GNU-Screen tabs?

I often have around 10 tabs in GNU-Screen open with all of them having vim open to a different file. If I just kill the Screen session, then VIM doesn't cleanup (.swp files are still there), so I usually have to go to each tab individually and type ":wq" and the "exit" to kill the screen tab. Any faster ways to do this? ...

arrow keys stop working for less

Sometimes, when I am using less within a screen tab, the arrow keys display ^[OA, ^[OB, ^[OC, and ^[OD instead of doing what I want them to do. Is there something I can do to fix this and gain control of less again? ...

Custom script in .screenrc

Hi. I made a script that spawns a remote shell or runs a local shell whether it's on the current machine or not: #!/bin/bash # By: benoror <[email protected]> # # spawns a remote shell or runs a local shell whether it's on the current machine or not # $1 = hostname if [ "$(hostname)" == "$1" ]; then bash else ssh "$1.local" fi...

switching between screens

I'm using GNU screen just recently. I'm wondering if there is an easier way to switch between screen. for example to map it to alt+left arrow and alt+right arrow ? ...

naming a screen session in linux

Hi, I am running multiple screens from one ssh connection, when I list all of the screens via screen -ls the names are not very descriptive and when I have multiple screens it becomes hard to remember what is running on each. Does anyone know how to name these sessions (preferably when creating the screen). Thanks ...