comparison src/systty.h @ 430:a5df635868b2 r21-2-23

Import from CVS: tag r21-2-23
author cvs
date Mon, 13 Aug 2007 11:29:08 +0200
parents 3ecd8885ac67
children 3a7e78e1142d
comparison
equal deleted inserted replaced
429:8305706cbb93 430:a5df635868b2
356 state, for example a struct tchars, a struct sgttyb, a struct 356 state, for example a struct tchars, a struct sgttyb, a struct
357 tchars, a struct ltchars, and a struct pagechars, struct 357 tchars, a struct ltchars, and a struct pagechars, struct
358 emacs_tty should contain an element for each parameter struct 358 emacs_tty should contain an element for each parameter struct
359 that Emacs may change. 359 that Emacs may change.
360 360
361 EMACS_GET_TTY (int FD, struct emacs_tty *P) stores the parameters 361 emacs_get_tty (int FD, struct emacs_tty *P) stores the parameters
362 of the tty on FD in *P. Return zero if all's well, or -1 if we ran 362 of the tty on FD in *P. Return zero if all's well, or -1 if we ran
363 into an error we couldn't deal with. 363 into an error we couldn't deal with.
364 364
365 EMACS_SET_TTY (int FD, struct emacs_tty *P, int flushp) 365 emacs_set_tty (int FD, struct emacs_tty *P, int flushp)
366 sets the parameters of the tty on FD according to the contents of 366 sets the parameters of the tty on FD according to the contents of
367 *P. If flushp is non-zero, we discard queued input to be 367 *P. If flushp is non-zero, we discard queued input to be
368 written before making the change. 368 written before making the change.
369 Return 0 if all went well, and -1 if anything failed. 369 Return 0 if all went well, and -1 if anything failed.
370 370
407 struct tchars tchars; 407 struct tchars tchars;
408 int lmode; 408 int lmode;
409 #endif /* HAVE_TCHARS */ 409 #endif /* HAVE_TCHARS */
410 #endif /* HAVE_TERMIOS */ 410 #endif /* HAVE_TERMIOS */
411 }; 411 };
412 412
413 /* Define EMACS_GET_TTY and EMACS_SET_TTY, 413 int emacs_get_tty (int fd, struct emacs_tty *settings);
414 the macros for reading and setting parts of `struct emacs_tty'. 414 int emacs_set_tty (int fd, struct emacs_tty *settings, int flushp);
415
416 These got pretty unmanageable (huge macros are hard to debug), and
417 finally needed some code which couldn't be done as part of an
418 expression, so we moved them out to their own functions in sysdep.c. */
419 #define EMACS_GET_TTY(fd, p) emacs_get_tty (fd, p)
420 #define EMACS_SET_TTY(fd, p, waitp) emacs_set_tty (fd, p, waitp)
421 415
422 416
423 /* --------------------------------------------------------- */ 417 /* --------------------------------------------------------- */
424 /* Define EMACS_TTY_TABS_OK */ 418 /* Define EMACS_TTY_TABS_OK */
425 /* --------------------------------------------------------- */ 419 /* --------------------------------------------------------- */