diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index b98708534cd..23f2e6d53ff 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7097,7 +7097,7 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7097 | int nread = 0; | 7097 | int nread = 0; |
| 7098 | 7098 | ||
| 7099 | if (!terminal->name) /* Don't read from a dead terminal. */ | 7099 | if (!terminal->name) /* Don't read from a dead terminal. */ |
| 7100 | return; | 7100 | return 0; |
| 7101 | 7101 | ||
| 7102 | if (terminal->type != output_termcap) | 7102 | if (terminal->type != output_termcap) |
| 7103 | abort (); | 7103 | abort (); |
| @@ -11572,9 +11572,12 @@ init_keyboard () | |||
| 11572 | #ifdef MULTI_KBOARD | 11572 | #ifdef MULTI_KBOARD |
| 11573 | current_kboard = initial_kboard; | 11573 | current_kboard = initial_kboard; |
| 11574 | #endif | 11574 | #endif |
| 11575 | /* Re-initialize the keyboard again. */ | ||
| 11575 | wipe_kboard (current_kboard); | 11576 | wipe_kboard (current_kboard); |
| 11576 | init_kboard (current_kboard); | 11577 | init_kboard (current_kboard); |
| 11577 | /* Leave Vwindow_system at its `t' default for now. */ | 11578 | /* A value of nil for Vwindow_system normally means a tty, but we also use |
| 11579 | it for the initial terminal since there is no window system there. */ | ||
| 11580 | current_kboard->Vwindow_system = Qnil; | ||
| 11578 | 11581 | ||
| 11579 | if (!noninteractive) | 11582 | if (!noninteractive) |
| 11580 | { | 11583 | { |
| @@ -12400,6 +12403,15 @@ and the Lisp function within which the error was signaled. */); | |||
| 12400 | Help functions bind this to allow help on disabled menu items | 12403 | Help functions bind this to allow help on disabled menu items |
| 12401 | and tool-bar buttons. */); | 12404 | and tool-bar buttons. */); |
| 12402 | Venable_disabled_menus_and_buttons = Qnil; | 12405 | Venable_disabled_menus_and_buttons = Qnil; |
| 12406 | |||
| 12407 | #ifdef MULTI_KBOARD | ||
| 12408 | /* Create the initial keyboard. */ | ||
| 12409 | initial_kboard = (KBOARD *) xmalloc (sizeof (KBOARD)); | ||
| 12410 | init_kboard (initial_kboard); | ||
| 12411 | /* Vwindow_system is left at t for now. */ | ||
| 12412 | initial_kboard->next_kboard = all_kboards; | ||
| 12413 | all_kboards = initial_kboard; | ||
| 12414 | #endif | ||
| 12403 | } | 12415 | } |
| 12404 | 12416 | ||
| 12405 | void | 12417 | void |