| 1234567891011121314151617181920212223242526272829303132333435 |
- module;
- 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);
- }
|