[Gllug] Getting the current VT

Benedikt Heinen gllug at ml.icemark.net
Sat Apr 9 23:23:14 UTC 2005


> Very quick question - does anyone know how to get the value of the
> current virtual terminal from a script?

Like this?


 	--> in a shell window under X11:

 		beh at berenium:~ $ tty
 		/dev/pts/5
 		beh at berenium:~ $

 	--> in a virtual console:

 		beh at berenium:~ $ tty
 		/dev/tty3
 		beh at berenium:~ $







Benedikt

--
                     Gaudeo te illud de me rogavisse.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list