Leaked source code of windows server 2003
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.

72 lines
1014 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. extern BOOLEAN SpTermDoUtf8;
  13. //
  14. // <CSI>K is the vt100 code to clear from cursor to end of line
  15. //
  16. #define HEADLESS_CLEAR_TO_EOL_STRING L"\033[K"
  17. VOID
  18. SpTermInitialize(
  19. VOID
  20. );
  21. VOID
  22. SpTermTerminate(
  23. VOID
  24. );
  25. VOID
  26. SpTermDisplayStringOnTerminal(
  27. IN PWSTR String,
  28. IN UCHAR Attribute,
  29. IN ULONG X, // 0-based coordinates (character units)
  30. IN ULONG Y
  31. );
  32. PWSTR
  33. SpTermAttributeToTerminalEscapeString(
  34. IN UCHAR Attribute
  35. );
  36. VOID
  37. SpTermSendStringToTerminal(
  38. IN PWSTR String,
  39. IN BOOLEAN Raw
  40. );
  41. ULONG
  42. SpTermGetKeypress(
  43. VOID
  44. );
  45. BOOLEAN
  46. SpTermIsKeyWaiting(
  47. VOID
  48. );
  49. VOID
  50. SpTermDrain(
  51. VOID
  52. );