Terminal.cppm 739 B

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