I use the korn shell. In my .kshrc file i have the line: export PS1="$WINDOW `uname -n`:\$PWD>" Every time screen opens a new virtual console it executes the .kshrc file and PS1 is redefined for this window. Screen also sets the WINDOW environment variable. to identify the screen number every time a new screen is created. So every time I create a new screen my PS1 prompt is redefined for that screen and each screen has a unique prompts such as: 0 tigger:/home/rudy> 1 tigger:/home/rudy> 2 tigger:/home/rudy> Rudy On Wed, May 29, 2002 at 12:32:25PM -0500, John J. Boyer wrote: > Rudy, > The screen program is working nicely for me. Could you explain what you > mean by "I usually like to make ps1 a window ,,, because this tells me > which screen console I am in."? this would be very useful. > Thanks. > John > On Wed, 29 May > 2002, A. R. Vener wrote: > > > >From your login shell prompt just enter the command screen. > > e.g. > > $ screen > > > > You should get a page with the authors blurb. Hit return and > > you should get back to the shell prompt. > > > > At this point, if all goes well, screen is running and you can > > create new virtual console sessions by typing ctrl-A c. That is hit > > the control-A key and then hit C. The control-A key is your meta key. > > > > To switch between screens hit control-A 0 through control-A 9 > > To toggle back and forth between two screens use conrtol-A conrtol-A. The > > last two screens accessed will be the alternates. > > > > Look at the help screens using control-A ?. > > > > Screen uses the vt100 terminal type or a variant of it so your temrinal > > emulator must be a VT100. > > > > I find it useful to define PS1 with a $WINDOW component since this > > value is set by screen and tells me at the shell prompt, which screen I am > > in. > > > > > > > > _______________________________________________ > > > > Blinux-list@redhat.com > > https://listman.redhat.com/mailman/listinfo/blinux-list > > > > -- > Computers to Help People, Inc. > http://www.chpi.org > 825 East Johnson; Madison, WI 53703 > > > > > _______________________________________________ > > Blinux-list@redhat.com > https://listman.redhat.com/mailman/listinfo/blinux-list