diff options
| author | Eli Zaretskii | 2008-08-23 16:52:37 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-08-23 16:52:37 +0000 |
| commit | cb22456dd34eb898dca2ab9e2808a3b9d29750fe (patch) | |
| tree | 24f039615e4d5f112c7b43517541465cb42e3505 | |
| parent | d823c26bfda6c4811615ae7fea776c61272b61ca (diff) | |
| download | emacs-cb22456dd34eb898dca2ab9e2808a3b9d29750fe.tar.gz emacs-cb22456dd34eb898dca2ab9e2808a3b9d29750fe.zip | |
(handle_interrupt) [MSDOS]: Call cursor_to with SELECTED_FRAME as
additional (1st) argument.
(tty_read_avail_input): Handle output_msdos_raw in addition to output_termcap.
| -rw-r--r-- | src/keyboard.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index ed95c3fce50..9650b574ccf 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7076,7 +7076,8 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7076 | if (!terminal->name) /* Don't read from a dead terminal. */ | 7076 | if (!terminal->name) /* Don't read from a dead terminal. */ |
| 7077 | return 0; | 7077 | return 0; |
| 7078 | 7078 | ||
| 7079 | if (terminal->type != output_termcap) | 7079 | if (terminal->type != output_termcap |
| 7080 | && terminal->type != output_msdos_raw) | ||
| 7080 | abort (); | 7081 | abort (); |
| 7081 | 7082 | ||
| 7082 | /* XXX I think the following code should be moved to separate hook | 7083 | /* XXX I think the following code should be moved to separate hook |
| @@ -7084,6 +7085,12 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7084 | #ifdef WINDOWSNT | 7085 | #ifdef WINDOWSNT |
| 7085 | return 0; | 7086 | return 0; |
| 7086 | #else /* not WINDOWSNT */ | 7087 | #else /* not WINDOWSNT */ |
| 7088 | if (! tty->term_initted) /* In case we get called during bootstrap. */ | ||
| 7089 | return 0; | ||
| 7090 | |||
| 7091 | if (! tty->input) | ||
| 7092 | return 0; /* The terminal is suspended. */ | ||
| 7093 | |||
| 7087 | #ifdef MSDOS | 7094 | #ifdef MSDOS |
| 7088 | n_to_read = dos_keysns (); | 7095 | n_to_read = dos_keysns (); |
| 7089 | if (n_to_read == 0) | 7096 | if (n_to_read == 0) |
| @@ -7093,13 +7100,6 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7093 | nread = 1; | 7100 | nread = 1; |
| 7094 | 7101 | ||
| 7095 | #else /* not MSDOS */ | 7102 | #else /* not MSDOS */ |
| 7096 | |||
| 7097 | if (! tty->term_initted) /* In case we get called during bootstrap. */ | ||
| 7098 | return 0; | ||
| 7099 | |||
| 7100 | if (! tty->input) | ||
| 7101 | return 0; /* The terminal is suspended. */ | ||
| 7102 | |||
| 7103 | #ifdef HAVE_GPM | 7103 | #ifdef HAVE_GPM |
| 7104 | if (gpm_tty == tty) | 7104 | if (gpm_tty == tty) |
| 7105 | { | 7105 | { |
| @@ -11005,7 +11005,7 @@ handle_interrupt () | |||
| 11005 | #ifdef MSDOS | 11005 | #ifdef MSDOS |
| 11006 | /* We must remain inside the screen area when the internal terminal | 11006 | /* We must remain inside the screen area when the internal terminal |
| 11007 | is used. Note that [Enter] is not echoed by dos. */ | 11007 | is used. Note that [Enter] is not echoed by dos. */ |
| 11008 | cursor_to (0, 0); | 11008 | cursor_to (SELECTED_FRAME (), 0, 0); |
| 11009 | #endif | 11009 | #endif |
| 11010 | /* It doesn't work to autosave while GC is in progress; | 11010 | /* It doesn't work to autosave while GC is in progress; |
| 11011 | the code used for auto-saving doesn't cope with the mark bit. */ | 11011 | the code used for auto-saving doesn't cope with the mark bit. */ |