On Mon, Nov 30, 2009 at 2:02 AM, Daniel Dalton <d.dal...@iinet.net.au> wrote: > > On Mon, Nov 30, 2009 at 07:20:59PM +1100, Daniel Dalton wrote: >> That did the trick, thanks, after I append >> [-2] > > Further testing under screen says otherwise -- it seems to give me the > tty number, not the virtual console number. Is there any way to figure > out what virtual console I'm am in so a certain command ran under screen > process A isn't confused with a command ran under screen process B?
>From what I can find, virtual console == tty. Quoting http://en.wikipedia.org/wiki/Virtual_console_%28PC%29 "The virtual consoles are represented by device special files /dev/tty1, /dev/tty2 etc." Also, in my quickie newbie experimentation with `screen`, each screen "window" seems to get a unique tty#. Admittedly I am running OS X here, so if your notion of "virtual console" differs from Wikipedia's and is Linux-specific or something... Perhaps if you could explain your problem in greater detail? Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list