Re: Getting current terminal ID
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 05/13/05
- Next message: Andreas Tretow: "Re: cygwin"
- Previous message: dion starfire: "cygwin"
- In reply to: skubik: "Getting current terminal ID"
- Next in thread: skubik: "Re: Getting current terminal ID"
- Reply: skubik: "Re: Getting current terminal ID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 13 May 2005 20:42:56 +0200
In alt.os.linux skubik <shawn.kubik@gmail.com>:
> I'm writing a BASH script where I need to retrieve the current ID of
> the virtual terminal being currently used. That is, if I run the script
> from an xterm window, I would get a terminal id of 7-12, if I run it
> from a text-console terminal, I would get 1-6. I've searched around a
> bit but can't seem to find a way to do this. IS there a way to retrieve
> this ID?
Sure.;)
man tty
Good luck
-- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 347: The rubber band broke
- Next message: Andreas Tretow: "Re: cygwin"
- Previous message: dion starfire: "cygwin"
- In reply to: skubik: "Getting current terminal ID"
- Next in thread: skubik: "Re: Getting current terminal ID"
- Reply: skubik: "Re: Getting current terminal ID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|