20 #ifndef POSIX_VIRTUALTERMINAL_H 21 #define POSIX_VIRTUALTERMINAL_H 23 #include "modules/subsys/posix/console-syscalls.h" 24 #include "modules/system/console/TextIO.h" 25 #include "modules/system/vfs/File.h" 72 size_t getCurrentTerminalNumber()
const;
73 TextIO *getCurrentTerminal()
const;
74 File *getCurrentTerminalFile()
const;
76 struct vt_mode getTerminalMode(size_t n) const;
79 struct vt_stat getState() const;
81 void setSystemMode(SystemMode mode);
82 SystemMode getSystemMode()
const;
84 void setInputMode(
size_t n, TextIO::InputMode newMode);
85 TextIO::InputMode getInputMode(
size_t n)
const;
88 void sendSignal(
size_t n,
bool acq);
106 File *m_pTtyFiles[MAX_VT];
107 struct vt_mode m_Modes[MAX_VT];
115 bool m_bSwitchingLocked;
117 SystemMode m_SystemMode;
void activate(size_t n)
Starts the process of activating the given tty.
void reportPermission(SwitchPermission perm)
void lockSwitching(bool locked)
void setTerminalMode(size_t n, struct vt_mode mode)