34 #if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT) 35 #error "Only <final/final.h> can be included directly." 41 #include "final/ftypes.h" 42 #include "final/util/fstring.h" 58 auto getClassName()
const ->
FString;
59 static auto getTTY() -> termios;
60 static auto getStdIn() noexcept -> int;
61 static auto getStdOut() noexcept -> int;
62 static auto getStdErr() noexcept -> int;
65 static auto isRaw() noexcept -> bool;
69 static void setTTY (
const termios&);
70 static void storeTTYsettings();
71 static void restoreTTYsettings();
72 static void setHardwareEcho();
73 static void unsetHardwareEcho();
74 static void setCaptureSendCharacters();
75 static void unsetCaptureSendCharacters();
76 static void setRawMode (
bool =
true);
77 static void unsetRawMode();
78 static void setCookedMode();
79 static auto getBaudRate() -> uInt;
87 static struct termios term_init;
93 inline auto FTermios::getClassName()
const ->
FString 94 {
return "FTermios"; }
97 inline auto FTermios::getStdIn() noexcept ->
int 101 inline auto FTermios::getStdOut() noexcept ->
int 102 {
return stdout_no; }
105 inline auto FTermios::getStdErr() noexcept ->
int 106 {
return stderr_no; }
109 inline auto FTermios::isRaw() noexcept ->
bool 113 inline void FTermios::unsetRawMode()
114 { setRawMode(
false); }
117 inline void FTermios::setCookedMode()
118 { setRawMode(
false); }
Definition: ftermios.h:51
Definition: class_template.cpp:25