Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
913 B

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spterm.h
  5. Abstract:
  6. Text setup support for terminals
  7. Author:
  8. Sean Selitrennikoff (v-seans) 25-May-1999
  9. Revision History:
  10. --*/
  11. extern BOOLEAN HeadlessTerminalConnected;
  12. //
  13. // <CSI>K is the vt100 code to clear from cursor to end of line
  14. //
  15. #define HEADLESS_CLEAR_TO_EOL_STRING L"\033[K"
  16. VOID
  17. SpTermInitialize(
  18. VOID
  19. );
  20. VOID
  21. SpTermTerminate(
  22. VOID
  23. );
  24. VOID
  25. SpTermDisplayStringOnTerminal(
  26. IN PWSTR String,
  27. IN UCHAR Attribute,
  28. IN ULONG X, // 0-based coordinates (character units)
  29. IN ULONG Y
  30. );
  31. PWSTR
  32. SpTermAttributeToTerminalEscapeString(
  33. IN UCHAR Attribute
  34. );
  35. VOID
  36. SpTermSendStringToTerminal(
  37. IN PWSTR String,
  38. IN BOOLEAN Raw
  39. );
  40. ULONG
  41. SpTermGetKeypress(
  42. VOID
  43. );
  44. BOOLEAN
  45. SpTermIsKeyWaiting(
  46. VOID
  47. );
  48. VOID
  49. SpTermDrain(
  50. VOID
  51. );