LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Where is the virtual tty code? (https://www.linuxquestions.org/questions/linux-kernel-70/where-is-the-virtual-tty-code-501161/)

rogueeve 11-13-2006 09:37 AM

Where is the virtual tty code?
 
I am just finishing setting up Debian on a PPC box which has an 82-key keyboard and the F-keys are missing, therefore I can not change virtual text consoles via alt+Fx. I would like to change this combo to just alt+1, alt+2, etc. Can someone tell me what program/daemon/part of the kernel is responsible for that and where to find it in the source?

kilgoretrout 11-13-2006 12:19 PM

The "chvt" command may help you rig something up that will work. To switch virtual terminals from the command line, you run:

$ chvt <terminal number>

This works fine when run from within a virtual terminal. However, when I'm running kde and try to run chvt from konsole, I get an error message unless I'm run the command as root. Once I'm within a virtual terminal, ordinary users can run chvt.


All times are GMT -5. The time now is 05:20 AM.