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.

27 lines
653 B

  1. #pragma once
  2. #define MAX_ESCAPE_PARAMS 32
  3. typedef BOOL (*TERMTXPROC)(PCWSTR, DWORD);
  4. typedef struct __TERMINAL
  5. {
  6. HANDLE hSavedBuffer;
  7. HANDLE hNewBuffer;
  8. HANDLE hInput;
  9. HANDLE hOutput;
  10. WORD wAttributes;
  11. BOOL fInverse;
  12. BOOL fBold;
  13. BOOL fEscapeValid;
  14. BOOL fEscapeInvalid;
  15. WORD wEscapeParamCount;
  16. WORD wEscapeParams[MAX_ESCAPE_PARAMS];
  17. WCHAR chEscapeCommand;
  18. WCHAR chEscapeFirstChar;
  19. TERMTXPROC pTxProc;
  20. } TERMINAL, *PTERMINAL;
  21. PTERMINAL termInitialize(TERMTXPROC pTxProc);
  22. void termFinalize(PTERMINAL pTerminal);