|
|
1.1 root 1: /* 1.1.1.7 ! root 2: Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved. 1.1 root 3: 1.1.1.7 ! root 4: Governed by the TrueCrypt License 2.8 the full text of which is contained in ! 5: the file License.txt included in TrueCrypt binary and source code distribution ! 6: packages. 1.1 root 7: */ 8: 9: #ifndef TC_HEADER_Boot_BootConsoleIo 10: #define TC_HEADER_Boot_BootConsoleIo 11: 12: #include "Platform.h" 13: 14: #define TC_DEBUG_PORT 0 15: 16: #define TC_BIOS_KEY_ESC 1 17: #define TC_BIOS_KEY_BACKSPACE 14 18: #define TC_BIOS_KEY_ENTER 28 19: #define TC_BIOS_KEY_F1 0x3b 20: #define TC_BIOS_KEY_F2 0x3c 21: #define TC_BIOS_KEY_F3 0x3d 22: #define TC_BIOS_KEY_F4 0x3e 23: #define TC_BIOS_KEY_F5 0x3f 24: #define TC_BIOS_KEY_F6 0x40 25: #define TC_BIOS_KEY_F7 0x41 26: #define TC_BIOS_KEY_F8 0x42 27: #define TC_BIOS_KEY_F9 0x43 28: #define TC_BIOS_KEY_F10 0x44 29: 30: #define TC_BIOS_SHIFTMASK_CAPSLOCK (1 << 6) 31: #define TC_BIOS_SHIFTMASK_LSHIFT (1 << 1) 32: #define TC_BIOS_SHIFTMASK_RSHIFT (1 << 0) 33: 34: #define TC_BIOS_CHAR_BACKSPACE 8 35: 36: #define TC_BIOS_MAX_CHARS_PER_LINE 80 37: 38: void Beep (); 1.1.1.2 root 39: void ClearBiosKeystrokeBuffer (); 1.1 root 40: void ClearScreen (); 41: void DisableScreenOutput (); 42: void EnableScreenOutput (); 1.1.1.3 root 43: bool EscKeyPressed (); 1.1.1.6 root 44: byte GetKeyboardChar (); 45: byte GetKeyboardChar (byte *scanCode); 1.1.1.3 root 46: byte GetShiftFlags (); 1.1 root 47: int GetString (char *buffer, size_t bufferSize); 1.1.1.3 root 48: void InitVideoMode (); 1.1 root 49: bool IsKeyboardCharAvailable (); 50: bool IsPrintable (char c); 51: void Print (const char *str); 52: void Print (uint32 number); 53: void Print (const uint64 &number); 54: void PrintBackspace (); 55: void PrintChar (char c); 1.1.1.4 root 56: void PrintCharAtCursor (char c); 1.1 root 57: void PrintEndl (); 58: void PrintEndl (int cnt); 59: void PrintRepeatedChar (char c, int n); 1.1.1.6 root 60: void PrintError (const char *message); 61: void PrintErrorNoEndl (const char *message); 1.1 root 62: void PrintHex (byte b); 63: void PrintHex (uint16 data); 64: void PrintHex (uint32 data); 65: void PrintHex (const uint64 &data); 66: 67: #endif // TC_HEADER_Boot_BootConsoleIo
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.