diff options
Diffstat (limited to 'src/w32console.c')
| -rw-r--r-- | src/w32console.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/w32console.c b/src/w32console.c index 42d89cca6d7..76585851e7f 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Terminal hooks for GNU Emacs on the Microsoft W32 API. | 1 | /* Terminal hooks for GNU Emacs on the Microsoft Windows API. |
| 2 | Copyright (C) 1992, 1999, 2001-2012 Free Software Foundation, Inc. | 2 | Copyright (C) 1992, 1999, 2001-2012 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -37,6 +37,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | #include "termhooks.h" | 37 | #include "termhooks.h" |
| 38 | #include "termchar.h" | 38 | #include "termchar.h" |
| 39 | #include "dispextern.h" | 39 | #include "dispextern.h" |
| 40 | #include "w32heap.h" /* for os_subtype */ | ||
| 40 | #include "w32inevt.h" | 41 | #include "w32inevt.h" |
| 41 | 42 | ||
| 42 | /* from window.c */ | 43 | /* from window.c */ |
| @@ -67,6 +68,7 @@ static CONSOLE_CURSOR_INFO prev_console_cursor; | |||
| 67 | #endif | 68 | #endif |
| 68 | 69 | ||
| 69 | HANDLE keyboard_handle; | 70 | HANDLE keyboard_handle; |
| 71 | int w32_console_unicode_input; | ||
| 70 | 72 | ||
| 71 | 73 | ||
| 72 | /* Setting this as the ctrl handler prevents emacs from being killed when | 74 | /* Setting this as the ctrl handler prevents emacs from being killed when |
| @@ -513,7 +515,7 @@ w32con_set_terminal_modes (struct terminal *t) | |||
| 513 | { | 515 | { |
| 514 | CONSOLE_CURSOR_INFO cci; | 516 | CONSOLE_CURSOR_INFO cci; |
| 515 | 517 | ||
| 516 | /* make cursor big and visible (100 on Win95 makes it disappear) */ | 518 | /* make cursor big and visible (100 on Windows 95 makes it disappear) */ |
| 517 | cci.dwSize = 99; | 519 | cci.dwSize = 99; |
| 518 | cci.bVisible = TRUE; | 520 | cci.bVisible = TRUE; |
| 519 | (void) SetConsoleCursorInfo (cur_screen, &cci); | 521 | (void) SetConsoleCursorInfo (cur_screen, &cci); |
| @@ -786,6 +788,11 @@ initialize_w32_display (struct terminal *term) | |||
| 786 | info.srWindow.Left); | 788 | info.srWindow.Left); |
| 787 | } | 789 | } |
| 788 | 790 | ||
| 791 | if (os_subtype == OS_NT) | ||
| 792 | w32_console_unicode_input = 1; | ||
| 793 | else | ||
| 794 | w32_console_unicode_input = 0; | ||
| 795 | |||
| 789 | /* Setup w32_display_info structure for this frame. */ | 796 | /* Setup w32_display_info structure for this frame. */ |
| 790 | 797 | ||
| 791 | w32_initialize_display_info (build_string ("Console")); | 798 | w32_initialize_display_info (build_string ("Console")); |