comparison src/xterm.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 82c3b4da43ca
comparison
equal deleted inserted replaced
83010:82554ed1aed8 83011:c4d4cbf86260
7064 thus pretending to be `read'. 7064 thus pretending to be `read'.
7065 7065
7066 EXPECTED is nonzero if the caller knows input is available. */ 7066 EXPECTED is nonzero if the caller knows input is available. */
7067 7067
7068 static int 7068 static int
7069 XTread_socket (bufp, numchars, expected) 7069 XTread_socket (display, bufp, numchars, expected)
7070 /* register */ struct input_event *bufp; 7070 struct display *display;
7071 /* register */ int numchars; 7071 struct input_event *bufp;
7072 int numchars;
7072 int expected; 7073 int expected;
7073 { 7074 {
7074 int count = 0; 7075 int count = 0;
7075 XEvent event; 7076 XEvent event;
7076 int event_found = 0; 7077 int event_found = 0;