Re: Bash prompt missing in screen

2014-08-08 Thread Kevin Van Workum
This is just a guess, but check the /etc/bashrc file on the remote host. In there, there's usually a case that sets PROMPT_COMMAND when TERM=screen. There could be something going on there. Also you might try playing the the TERM and PROMPT_COMMAND variables. On Thu, Aug 7, 2014 at 7:31 PM, Dave

Re: Some features may be dropped from GNU Screen in the future (including braille support)

2014-04-03 Thread Kevin Van Workum
Please don't remove multiuser! It's a useful feature. Allow the user to decide the security risk for themselves. On Wed, Apr 2, 2014 at 4:57 PM, Don Raikes wrote: > Amadeusz, > > If you can't test Braille support, don't just remove it, ask for help > testing. > > I would be happy to test Braill

Re: Tinted Backgrounds

2014-03-18 Thread Kevin Van Workum
Don't think you can tint the window, but you change the color of the caption bar. Create a shell script (e.g. chcap.sh) like this and put it somewhere in your PATH: #!/bin/bash # this is the caption I like to use. the %{kr} and %{kc} # define the colors. See man screen for more details. caption[0]

Re: screen -s -/bin/bash

2014-03-03 Thread Kevin Van Workum
$ cat .bash_profile | sed -e '/^#/d' -e '/^$/d' if [ -f ~/.bashrc ]; then . ~/.bashrc fi PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH echo "this is a login shell" $ cat .bashrc | sed -e '/^#/d' -e '/^$/d' if [ -f /etc/bashrc ]; then . /etc/bashrc fi $ cat .screenrc cat: .screenrc: No such fi

Re: screen -s -/bin/bash

2014-03-03 Thread Kevin Van Workum
Hmm. "screen -s -/bin/bash" starts a login shell for me. I have: $ screen --version Screen version 4.01.00devel (GNU) 2-May-06 Did you try putting '-/bin/bash' in single quotes. That should escape the dash. On Mon, Mar 3, 2014 at 1:59 PM, Rhys Ulerich wrote: > > What about just "screen -s /bi

Re: screen -s -/bin/bash

2014-03-03 Thread Kevin Van Workum
What about just "screen -s /bin/bash"? On Mon, Mar 3, 2014 at 1:50 PM, Rhys Ulerich wrote: > Perhaps my misunderstanding is that I see no way to escape the leading > hyphen on "/bin/bash": > > > screen -s -/bin/bash > > ? > > Things like > screen -s=-/bin/bash > and > screen -s -- -/bin

Re: garbage at start

2014-02-13 Thread Kevin Van Workum
of the terminal! (height) > half: +/- half > > On Thu, Feb 13, 2014 at 11:39:46AM -0500, Kevin Van Workum wrote: > > What happens when you pipe your command to 'less -r' ? > > > > > > On Thu, Feb 13, 2014 at 11:31 AM, folkert > wrote: > > >

Re: garbage at start

2014-02-13 Thread Kevin Van Workum
What happens when you pipe your command to 'less -r' ? On Thu, Feb 13, 2014 at 11:31 AM, folkert wrote: > It is screen in fact. > > On Thu, Feb 13, 2014 at 11:29:56AM -0500, Kevin Van Workum wrote: > > Try setting TERM=screen. > > > > > > On T

Re: garbage at start

2014-02-13 Thread Kevin Van Workum
Try setting TERM=screen. On Thu, Feb 13, 2014 at 7:12 AM, folkert wrote: > Hi, > > Situation: > - I login to a linux system (either from an other linux system or via > putty) > - from that one I hop to an other linux system using openssh > - on that 2nd system I open a "screen"-session > - in

Re: Caption to show `pwd` instead of shell?

2013-08-08 Thread Kevin Van Workum
On Wed, Aug 7, 2013 at 5:49 PM, David Woodfall wrote: > I'm using this caption: > > caption string "%{= 9w}%-w%{+b w}%n-%f %t%{-}%+w%{+b w}" > > What I'd like to do is change each listed window to show the pwd > instead of shell. I'm using zsh. > > I can't see any way of doing this except to upda

Re: no border when doing vert_split

2013-03-12 Thread Kevin Van Workum
On Thu, Mar 7, 2013 at 4:02 PM, DookTibs wrote: > > Hi - I just started using screen. One problem I'm running into is when I > split the window using the "vert_split" command, there is no visual border > separating the two windows. I do get a border when doing a horizontal > split. > From screens

Re: passing environment variables through to screen

2012-07-03 Thread Kevin Van Workum
As far as I know, screen behaves like any other process and inherits its environment. So invoking screen as follows should work, if not, then you have some other problems. TMPDIR=/some/dir screen On Mon, Jul 2, 2012 at 3:20 PM, Mark Diekhans wrote: > > Is there a way to cause screen to pass th

Re: How one could address a window with a highest number inside a particular screen session?

2012-05-16 Thread Kevin Van Workum
How about this: screen -Q windows | sed -e 's/.*\([1-9]\+\).\? \+[^ ]\+$/\1/' On Tue, May 15, 2012 at 2:47 PM, Anatoly Varakin < anatoly.vara...@adotube.com> wrote: > Dear colleagues, > > ** ** > > Please help to resolve the problem of finding a reliable way to address > programmatically (v

Re: Two column layout

2012-01-13 Thread Kevin Van Workum
2012/1/13 Axel Beckert > Hi, > > On Fri, Jan 13, 2012 at 10:30:53AM -0600, Rhys Ulerich wrote: > > Is it possible to have two panes hold a single window (much like a two > > column layout in a magazine)? > > > > It'd be sweet to have > > > > A|D > > B|E > > C|F > > > > where A, B, C, D, E, F are

Re: Split, change focus and create new window with a single key combination

2011-10-05 Thread Kevin Van Workum
On Mon, Oct 3, 2011 at 1:09 PM, wrote: > Hello everybody out there using screen, > > A frequent task in GNU screen for me ist to split an existing window, focus > the new area and create a new window within it. > This requires 3 key combinations: > C-a S > C-a TAB > C-a c > GNU screen is a great

Re: setting the window title to the hardstatus

2011-09-19 Thread Kevin Van Workum
On Sun, Sep 18, 2011 at 1:23 PM, Jostein Berntsen wrote: > On 16.09.11,09:21, Kevin Van Workum wrote: > > I'm often su'ing to different users. These users use the system bashrc > which > > sets the xterm's hardstatus to something like user@hostname:cwd. I would

setting the window title to the hardstatus

2011-09-16 Thread Kevin Van Workum
I'm often su'ing to different users. These users use the system bashrc which sets the xterm's hardstatus to something like user@hostname:cwd. I would like to have my window titles show their hardstatus line. Do you know how to set the window title to the hardstatus? -- Kevin

Re: copy&paste in vim inside screen that started from console (not started from under X)

2011-09-06 Thread Kevin Van Workum
ee it survives across next X restart--I think it can. > > and, I think this option2) also has its value given that option1 works, > imaging I can create a screen from ssh remotely. starting screen from > console I need to have physical access to my laptop... > > thanks again! I hope other

Re: I need `undo' in gnu screen

2011-09-05 Thread Kevin Van Workum
On Wed, Jul 27, 2011 at 1:26 AM, chen bin wrote: > typical user case, > > I use command `only` (C-a Q) to maximize the window to observer some > log, then I want to restore the previous layout to do other things. > Great ideal, I think I'd use that too. The following will make C-a Q toggle betw

Re: query shell environment or hardstatus in other windows

2011-09-04 Thread Kevin Van Workum
On Thu, Aug 18, 2011 at 10:36 AM, Kevin Van Workum < vanw+scr...@sabalcore.com> wrote: > Hi, > > I would like to query the values of environment variable that are set in > the shells of other window in my screen session. For example, I would like > to know the value of $HOSTN

Re: query shell environment or hardstatus in other windows

2011-08-18 Thread Kevin Van Workum
On Thu, Aug 18, 2011 at 2:54 PM, Jostein Berntsen wrote: > On 18.08.11,12:51, Kevin Van Workum wrote: > > On Thu, Aug 18, 2011 at 12:33 PM, Jostein Berntsen >wrote: > > > > > On 18.08.11,10:36, Kevin Van Workum wrote: > > > > Hi, > > > > >

Re: query shell environment or hardstatus in other windows

2011-08-18 Thread Kevin Van Workum
On Thu, Aug 18, 2011 at 12:33 PM, Jostein Berntsen wrote: > On 18.08.11,10:36, Kevin Van Workum wrote: > > Hi, > > > > I would like to query the values of environment variable that are set in > the > > shells of other window in my screen session. For example, I would

query shell environment or hardstatus in other windows

2011-08-18 Thread Kevin Van Workum
Hi, I would like to query the values of environment variable that are set in the shells of other window in my screen session. For example, I would like to know the value of $HOSTNAME in window 0 while in window 1. Really, all I want is HOSTNAME, USER, and PWD which are all displayed on my hardsta

Re: no up arrow command history

2011-08-05 Thread Kevin Van Workum
On Fri, Aug 5, 2011 at 5:48 AM, Eric Smith wrote: > For more than a year now, screen does not give me the option of > cycling through history with the up/down arrows in colon mode. > > Till now I was not sure if this was a blessing or a curse. > Now I want it back. > > What could be up here? > I

Re: any way to kill one windows from anther window?

2011-08-03 Thread Kevin Van Workum
On Wed, Aug 3, 2011 at 8:31 AM, ping wrote: > I run into a strange issue now (for the 1st time), one window is running > into a sick, weird condition while all other windows are fine. > that window is blinking all the time and no command or keystroke can be > accepted. I'm running some important

Re: copy&paste in vim inside screen that started from console (not started from under X)

2011-08-02 Thread Kevin Van Workum
on before starting vim. Maybe vim and/or your mouse is using that to get to the xclipboard. > > > thanks. > > regards > ping > > > > > On 08/01/2011 04:28 PM, Paul Ackersviller wrote: > > This is now just a problem with vim and not specific to screen, correct?

Re: all apps in my screen lost across X reboot

2011-07-29 Thread Kevin Van Workum
(and all its child) is not a child of X, so it has problem to access the X > selections or clipboards... > any idea? > > regards > ping > > > > On 07/07/2011 03:21 PM, ping wrote: > > hi Kevin: > thanks and that sounds exactly what my issue was. > I'll try

Re: all apps in my screen lost across X reboot

2011-07-07 Thread Kevin Van Workum
t; people are saying they use screen to get persistent sessions across X...how > can i archive that? > > thanks! > > regards > ping > > ___ > screen-users mailing list > screen-users@gnu.org > https://lists.gnu.org/ma

Re: simply preserving sessions across disconnect

2011-06-30 Thread Kevin Van Workum
ls | grep detached | tail -1 | sed 's/^\s\+//' | sed 's/\s.*$//') if [ "x${SESSION}" == "x" ]; then screen else screen -R $SESSION fi > Thanks, > AK > > ___ > screen-users mailing list

Re: hello,I want to execute a screen in shell, and execute command form the screen, How can I do it, thanks

2011-05-19 Thread Kevin Van Workum
n-users mailing list > screen-users@gnu.org > https://lists.gnu.org/mailman/listinfo/screen-users > > -- Kevin Van Workum, PhD Sabalcore Computing Inc. Run your code on 500 processors. Sign up for a free trial account. www.sabalcore.com 877-492-8027 ext. 11 _

Re: where to get the vertical split patch?

2011-05-19 Thread Kevin Van Workum
-up patch somewhere against release 4.0.3, of the > latest version of just the vertical split capability? > > Thanks, > Andrew. > > > ___________ > screen-users mailing list > screen-users@gnu.org > https://lists.gnu.org/mailm

Re: Is it possible to hardcopy the screen's contents to STDOUT?

2011-03-28 Thread Kevin Van Workum
ftp -X hardcopy; cat hardcopy.$(screen -x lftp -Q number | sed 's/\([0-9]\).*/\1/') > blackc...@speedpost.net > > -- > http://www.fastmail.fm - mmm... Fastmail... > > > ___ > screen-users mailing list > scree

Re: Please help me choose a good single-keystroke escape key

2011-03-24 Thread Kevin Van Workum
iling list > screen-users@gnu.org > http://lists.gnu.org/mailman/listinfo/screen-users > -- Kevin Van Workum, PhD Sabalcore Computing Inc. Run your code on 500 processors. Sign up for a free trial account. www.sabalcore.com 877-492-8027 ext. 11 _

Re: Question Regarding Navigating the Buffer

2010-11-23 Thread Kevin Van Workum
Does "g^" do what you want? That should put the cursor on the first non-whitespace char in the buffer. On Mon, Nov 22, 2010 at 8:55 AM, Daniel Patrick Sullivan < dansu...@uchicago.edu> wrote: > Hi, Everyone, > > I have a quick question with respect to navigating screens buffer. > Basically I work

Re: Run a command on startup on a specific window, don't close window on programm exit

2010-11-14 Thread Kevin Van Workum
On Fri, Nov 12, 2010 at 6:43 PM, Thomas Manson wrote: > Hi, > > > I'm configuring screen to open several windows, and automatically connect > to some servers (key authentication). > > I've edited the screen configuration file to this : > > screen -t NS0 1 /home/thomas/scripts/connectToServer/ns0

Re: screen log

2010-11-12 Thread Kevin Van Workum
It's not a screen command, but try the "script" tool. It's very useful for that type of thing. On Wed, Nov 10, 2010 at 7:10 AM, Ray Liu wrote: > Hi Guys, > > I'm new to linux screen command, has anyone tried logging the output of > screen command in Linux? > say, I want the following command

Re: New shells opening at / in screen?

2010-11-01 Thread Kevin Van Workum
On Sun, Oct 31, 2010 at 9:10 AM, seanh wrote: > Anyone know why this might be happening? Just recently, whenever I open a > new shell in screen it starts in the root directory (/) instead of in my > homedir. If I start a new shell outside of screen it starts in my homedir. I > don't think there's

Re: screen halting on startup?

2010-10-30 Thread Kevin Van Workum
On Fri, Oct 29, 2010 at 1:50 PM, Chris Poole wrote: > Hi, > I'm connecting to a mac mini remotely through ssh. > > When I invoke screen on the mini, the cursor drops to the next line, and > that's it. Nothing else happens. It doesn't seem to respond to ^c either: I > drop the ssh connection via "

Re: click

2010-10-15 Thread Kevin Van Workum
Screen version 4.01.00devel (GNU) 2-May-06 On Fri, Oct 15, 2010 at 1:24 PM, Dustin Kirkland wrote: > On Fri, Oct 15, 2010 at 9:16 AM, Kevin Van Workum > > wrote: > > mousetrack on > > Hmm, what version of screen added this? > > I'm using Screen version 4.00

Re: click

2010-10-15 Thread Kevin Van Workum
mousetrack on On Thu, Oct 14, 2010 at 9:48 AM, Alan Jurgensen wrote: > Is there any way to receive mouse clicks by screen to choose a window? > perhaps if the window titles on hardstatus line were statically fixed in > size... > > > > > > ___ > screen-

Re: While we're fantasizing about scripting...

2010-09-24 Thread Kevin Van Workum
Take a look at Expect. It has macro-recording (autoexpect), and you can control multiple screen sessions (or anything ttyish). It's my goto for problems like this. Adding a convenience extension for screen wouldn't be to bad. As John B. suggested, just "stuff" your commands into tcl procedures and

Re: Send keystrokes to multiple windows

2010-09-12 Thread Kevin Van Workum
On Sat, Sep 11, 2010 at 12:37 PM, Thomas Habets wrote: > > Is it possible to turn on a mode where what I type is written to all open > windows at the same time? > > If not, I'd like to request that feature. > > I'd like to use it to send identical commands to a bunch of routers that > I've logged

Re: send commands to screen that is in ssh session

2010-08-28 Thread Kevin Van Workum
Try screen -S foo -X stuff "echo hello world^j" You insert the ^j with the 'Ctrl-v Ctrl-j' key sequence in bash. It has to be inside the quotes. On Thu, Aug 26, 2010 at 12:54 PM, Toby Matejovsky wrote: > I'm trying to send a command to a screen which is also in an ssh session. > > terminal 1: >

Re: Running an intial command together with -D -R

2010-08-17 Thread Kevin Van Workum
I think screen is looking for a tty named emacs. If you give screen a bogus tty name it will work. Or you can pass another option. For example, try 'screen -D -R -t EMACS emacs' On Mon, Aug 16, 2010 at 6:06 AM, Ed Avis wrote: > If I say 'screen emacs' then it starts a new screen running emacs. >

blanker program

2010-08-06 Thread Kevin Van Workum
I can't get the blanker command to work. I've tried several different command via the blankerprg command, but nothing seems to work. For example, if I do this: blankerprg top blanker All I get is a blank screen. I thought the blanker command was supposed to display the STDOUT of the blankerprg.

Re: color of the vertical frame when using split -v

2010-07-30 Thread Kevin Van Workum
That works. Thanks. By the way, what does 'so' represent? On Fri, Jul 30, 2010 at 9:09 AM, Artur Skonecki wrote: > my setting are > :rendition so by > > -- > Artur Skonecki > http://adb.cba.pl > > > On Fri, 30 Jul 2010, Kevin Van Workum wrote: > >

color of the vertical frame when using split -v

2010-07-30 Thread Kevin Van Workum
How can I modify the color of the vertical frame (division between adjacent windows) when using split -v? Kevin ___ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users

Re: Attaching to multiple sessions at the same time via split windows / tabs

2010-07-29 Thread Kevin Van Workum
Yeah, I wish you have a command or set of commands run when you reattach. But, how about adding this to your .screenrc: bind ^p eval 'select 0' 'split -v' 'focus right' 'select 1' 'split' 'focus down' 'select 2' 'focus left' 'split' 'focus down' 'select 3' You'll have to completely close your de