Documentation ¶
Overview ¶
Package console allows for some trivial manipulations of linux virtual terminals, such as switching which one is in the foreground, displaying messages, then switching back.
Makes use of the system's fgconsole, chvt, deallocvt tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MessageChannel ¶
func MessageChannel() (vt vtChan, err error)
switch to an unused vt and display messages as they arrive in ch. destroy vt and switch back to original when ch is closed. NOTE - prog must not exit immediately after closing channel, or switch will not happen
Types ¶
Click to show internal directories.
Click to hide internal directories.