vidcontrol -s ?
from xterm try to use vidcontrol -s #num < /dev/ttyv*
not sure if it is possible
vidcontrol -s
X </dev/ttyv
YCan I just confirm what you mean by graphical terminal? Are you referring to XTerm via X11? Surely that keybinding depends on what window manager you use?Switching virtual terminals can be done with the keyboard easily with <Alt><F#> and for graphical virtual terminals with <Ctl><Alt><F#>.
Can I just confirm what you mean by graphical terminal? Are you referring to XTerm via X11? Surely that keybinding depends on what window manager you use?
It is a bit naff but can you not send a key event to the WM via xsendkeys (i.e here)? Either modify this program or wrap it in a script.Yes, an xterm session (or similar) in X. Keybindings are irrelevant because I want to use a command.
with screen or tmux, yesIs it possible to leave terminal window opened on real computer, go home and connect through ssh, and attach to this existing terminal?
how to do it?with screen or tmux, yes
It is a bit naff but can you not send a key event to the WM via xsendkeys (i.e here)? Either modify this program or wrap it in a script.
Assuming then that your graphical terminals and on separate desktops. A specific key could be mapped to change to the respective one. Very possible in Fvwm, OpenBox, DWM, etc.
the combination is parsed by the X server itself not the WM
you can try sending to the root window but i doubt it will work (i dont think that events sent that way will reach the required code path)
It should do. You send it to the root window and the WM hooks the event and handles it.the combination is parsed by the X server itself not the WM
you can try sending to the root window but i doubt it will work (i dont think that events sent that way will reach the required code path)
he does not want to change virtual desktopsIt should do. You send it to the root window and the WM hooks the event and handles it.
You often need to make sure to label the event as fake.
For OpenCDE, I integrated this tool to send events directly to the WM (not as keypresses). You should be able to get it to change virtual desktops using X11 events / atoms.
Would autologin to those text consoles be an option? There is an example here: https://forums.freebsd.org/threads/autologin-and-auto-run-x-server.6782/#post-43547So if I am in graphical console 9, and wish to switch to graphical console 10, I would have to log in to one of the text consoles first.
vidcontrol -s
X</dev/ttyv
Y
… switch to the second virtual terminal (/dev/ttyv1):
# vidcontrol </dev/ttyv0 -s 2
-s1 but you have to be at one of the other ttyv's
-s1
seems to take me to ttyv0.