linux - How do I find the current virtual terminal -


I am working on a problem in Ubuntu 10.04, where after the resume, the mouse cursor is missing goes.

This can be "Fixed" by running chvt 1;

However, the X console is not always vt # 7, so

code> 7 7 is wrong in those cases .

What I would like to do is, find the current VT in the fix-up script and make sure that I will revert back to that VT. / P>

How can I get the current VT? (TTI (1) only reports "no TTI")

check that 'fgconsole' is what Does it need Seems to work for me (e.g., return 7 and I'm currently in x)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -