Mercurial > emacs
comparison src/term.c @ 83011:c4d4cbf86260
Changed tty input code to use read_socket_hook.
src/keyboard.c (read_avail_input): Removed tty-related code.
(tty_read_avail_input): New function.
src/keyboard.h (tty_read_avail_input): New prototype.
src/term.c (term_init): Set read_socket_hook. Removed bogus baud rate
initialization.
src/termhooks.h (read_socket_hook): Added display parameter.
src/xterm.c (XTread_socket): Added display parameter (unused).
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-51
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 11 Jan 2004 01:18:45 +0000 |
parents | 040dd41ed7d0 |
children | 4aa172a45af1 |
comparison
equal
deleted
inserted
replaced
83010:82554ed1aed8 | 83011:c4d4cbf86260 |
---|---|
2271 display->set_vertical_scroll_bar_hook = 0; /* Not needed. */ | 2271 display->set_vertical_scroll_bar_hook = 0; /* Not needed. */ |
2272 display->condemn_scroll_bars_hook = 0; /* Not needed. */ | 2272 display->condemn_scroll_bars_hook = 0; /* Not needed. */ |
2273 display->redeem_scroll_bar_hook = 0; /* Not needed. */ | 2273 display->redeem_scroll_bar_hook = 0; /* Not needed. */ |
2274 display->judge_scroll_bars_hook = 0; /* Not needed. */ | 2274 display->judge_scroll_bars_hook = 0; /* Not needed. */ |
2275 | 2275 |
2276 display->read_socket_hook = 0; /* Not needed. */ | 2276 display->read_socket_hook = &tty_read_avail_input; /* keyboard.c */ |
2277 display->frame_up_to_date_hook = 0; /* Not needed. */ | 2277 display->frame_up_to_date_hook = 0; /* Not needed. */ |
2278 | 2278 |
2279 display->delete_frame_hook = &delete_tty_output; | 2279 display->delete_frame_hook = &delete_tty_output; |
2280 display->delete_display_hook = &delete_tty; | 2280 display->delete_display_hook = &delete_tty; |
2281 | 2281 |
2705 | 2705 |
2706 display->fast_clear_end_of_line = tty->TS_clr_line != 0; | 2706 display->fast_clear_end_of_line = tty->TS_clr_line != 0; |
2707 | 2707 |
2708 init_baud_rate (fileno (TTY_INPUT (tty))); | 2708 init_baud_rate (fileno (TTY_INPUT (tty))); |
2709 | 2709 |
2710 /* XXX This condition sounds bogus. */ | |
2711 if (display->read_socket_hook) /* Baudrate is somewhat | |
2712 meaningless in this case */ | |
2713 baud_rate = 9600; | |
2714 | |
2715 #ifdef AIXHFT | 2710 #ifdef AIXHFT |
2716 /* The HFT system on AIX doesn't optimize for scrolling, so it's | 2711 /* The HFT system on AIX doesn't optimize for scrolling, so it's |
2717 really ugly at times. */ | 2712 really ugly at times. */ |
2718 display->line_ins_del_ok = 0; | 2713 display->line_ins_del_ok = 0; |
2719 display->char_ins_del_ok = 0; | 2714 display->char_ins_del_ok = 0; |