python and vc numbers
Gregory Ewing
greg.ewing at canterbury.ac.nz
Tue Dec 1 01:19:18 EST 2009
Daniel Dalton wrote:
> I can't find a reliable way to
> determine the current console number with python or any bash tool. When
> I say console number, I mean the actual console number, not screen
> window or device it is sending to or whatever.
You may be able to tell by looking at the DISPLAY
environment variable. Usually it has a form like
localhost:X.Y
where X and Y are numbers identifying the display
device and screen.
--
Greg
More information about the Python-list
mailing list