38 enum SwitchPermission { Allowed, Disallowed };
40 enum SystemMode { Text, Graphics };
57 bool acknowledgeAcquire(
size_t n);
65 size_t getCurrentTerminalNumber()
const;
66 TextIO* getCurrentTerminal()
const;
67 File* getCurrentTerminalFile()
const;
69 struct vt_mode getTerminalMode(size_t n) const;
70 bool setTerminalMode(
size_t n,
struct vt_mode mode);
71 bool isTerminal(
size_t n)
const;
73 struct vt_stat getState() const;
75 void setSystemMode(
size_t n, SystemMode mode);
76 SystemMode getSystemMode(
size_t n)
const;
78 void setInputMode(
size_t n, TextIO::InputMode newMode);
79 TextIO::InputMode getInputMode(
size_t n)
const;
82 bool sendSignal(
size_t n,
bool acq);
83 void switchTerminal(
size_t n);
89 SystemMode systemMode;
102 File* m_pTtyFiles[MAX_VT];
103 struct vt_mode m_Modes[MAX_VT];
111 bool m_bSwitchingLocked;
113 mutable Mutex m_Lock;