| 123456789101112131415161718192021222324252627282930313233 |
- export module Core.Terminal;
- export import Core.Vector;
- export namespace Core {
- void enterAlternativeTerminal();
- void leaveAlternativeTerminal();
- IntVector2 getTerminalSize();
- void clearTerminal();
- void clearTerminalLine();
- void hideCursor();
- void showCursor();
- void resetCursor();
- void moveCursorLeft(int i);
- void moveCursorRight(int i);
- void moveCursorUp(int i);
- void moveCursorDown(int i);
- bool enterRawTerminal();
- bool leaveRawTerminal();
- u64 getRawChar();
- bool isSpecialChar(u64 u);
- struct SpecialChar {
- u64 key = 0;
- bool control = 0;
- bool shift = 0;
- bool alt = 0;
- };
- SpecialChar convertToSpecialChar(u64 u);
- }
|