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?
...
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 ...
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!
...
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...
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...
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...
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
...
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)
...
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!
...
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?
...
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.
...
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...
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 ...
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 ...
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...
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?
...
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?
...
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...
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 ?
...
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
...