Terminal.cppm 730 B

123456789101112131415161718192021222324252627282930313233
  1. export module Core.Terminal;
  2. export import Core.Vector;
  3. export namespace Core {
  4. void enterAlternativeTerminal();
  5. void leaveAlternativeTerminal();
  6. IntVector2 getTerminalSize();
  7. void clearTerminal();
  8. void clearTerminalLine();
  9. void hideCursor();
  10. void showCursor();
  11. void resetCursor();
  12. void moveCursorLeft(int i);
  13. void moveCursorRight(int i);
  14. void moveCursorUp(int i);
  15. void moveCursorDown(int i);
  16. bool enterRawTerminal();
  17. bool leaveRawTerminal();
  18. u64 getRawChar();
  19. bool isSpecialChar(u64 u);
  20. struct SpecialChar {
  21. u64 key = 0;
  22. bool control = 0;
  23. bool shift = 0;
  24. bool alt = 0;
  25. };
  26. SpecialChar convertToSpecialChar(u64 u);
  27. }