Skip to content

Commit

Permalink
win32: wincon.h: support more console mode flags
Browse files Browse the repository at this point in the history
Mainly VT modes (win 10+), quick-edit, insert.
  • Loading branch information
avih committed May 12, 2024
1 parent 0aca861 commit da5aa7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions win32/include/winapi/wincon.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,16 @@ extern "C" {
#define ENABLE_ECHO_INPUT 0x4
#define ENABLE_WINDOW_INPUT 0x8
#define ENABLE_MOUSE_INPUT 0x10
#define ENABLE_INSERT_MODE 0x20
#define ENABLE_QUICK_EDIT_MODE 0x40
#define ENABLE_EXTENDED_FLAGS 0x80
#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x200

#define ENABLE_PROCESSED_OUTPUT 0x1
#define ENABLE_WRAP_AT_EOL_OUTPUT 0x2
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x4
#define DISABLE_NEWLINE_AUTO_RETURN 0x8
#define ENABLE_LVB_GRID_WORLDWIDE 0x10

#ifdef UNICODE
#define PeekConsoleInput PeekConsoleInputW
Expand Down

0 comments on commit da5aa7d

Please sign in to comment.