comparison readline/rltty.h @ 3783:4ab12d923395

[project @ 2001-02-07 08:23:27 by jwe]
author jwe
date Wed, 07 Feb 2001 08:23:27 +0000
parents f7e4a95916f2
children
comparison
equal deleted inserted replaced
3782:55a13d6d2625 3783:4ab12d923395
6 routines for providing Emacs style line input to programs that ask 6 routines for providing Emacs style line input to programs that ask
7 for it. 7 for it.
8 8
9 The Library is free software; you can redistribute it and/or modify 9 The Library is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by 10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 1, or (at your option) 11 the Free Software Foundation; either version 2, or (at your option)
12 any later version. 12 any later version.
13 13
14 The Library is distributed in the hope that it will be useful, but 14 The Library is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of 15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 is generally kept in a file called COPYING or LICENSE. If you do not 20 is generally kept in a file called COPYING or LICENSE. If you do not
21 have a copy of the license, write to the Free Software Foundation, 21 have a copy of the license, write to the Free Software Foundation,
22 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 22 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
23 23
24 #if !defined (_RLTTY_H_) 24 #if !defined (_RLTTY_H_)
25 #define _RLTTY_H 25 #define _RLTTY_H_
26 26
27 /* Posix systems use termios and the Posix signal functions. */ 27 /* Posix systems use termios and the Posix signal functions. */
28 #if defined (TERMIOS_TTY_DRIVER) 28 #if defined (TERMIOS_TTY_DRIVER)
29 # include <termios.h> 29 # include <termios.h>
30 #endif /* TERMIOS_TTY_DRIVER */ 30 #endif /* TERMIOS_TTY_DRIVER */
40 /* Other (BSD) machines use sgtty. */ 40 /* Other (BSD) machines use sgtty. */
41 #if defined (NEW_TTY_DRIVER) 41 #if defined (NEW_TTY_DRIVER)
42 # include <sgtty.h> 42 # include <sgtty.h>
43 #endif 43 #endif
44 44
45 /* Stuff for `struct winsize' on various systems. */ 45 #include "rlwinsize.h"
46 #if defined (HAVE_SYS_STREAM_H)
47 # include <sys/stream.h>
48 #endif /* HAVE_SYS_STREAM_H */
49 #if defined (HAVE_SYS_PTEM_H)
50 # include <sys/ptem.h>
51 # define _IO_PTEM_H /* work around SVR4.2 1.1.4 bug */
52 #endif /* HAVE_SYS_PTEM_H */
53 #if defined (HAVE_SYS_PTE_H)
54 # include <sys/pte.h>
55 #endif /* HAVE_SYS_PTE_H */
56 46
57 /* Define _POSIX_VDISABLE if we are not using the `new' tty driver and 47 /* Define _POSIX_VDISABLE if we are not using the `new' tty driver and
58 it is not already defined. It is used both to determine if a 48 it is not already defined. It is used both to determine if a
59 special character is disabled and to disable certain special 49 special character is disabled and to disable certain special
60 characters. Posix systems should set to 0, USG systems to -1. */ 50 characters. Posix systems should set to 0, USG systems to -1. */
68 # define _POSIX_VDISABLE -1 58 # define _POSIX_VDISABLE -1
69 # endif /* !_POSIX_VERSION */ 59 # endif /* !_POSIX_VERSION */
70 # endif /* !_SVR4_DISABLE */ 60 # endif /* !_SVR4_DISABLE */
71 #endif /* !NEW_TTY_DRIVER && !_POSIX_VDISABLE */ 61 #endif /* !NEW_TTY_DRIVER && !_POSIX_VDISABLE */
72 62
63 typedef struct _rl_tty_chars {
64 char t_eof;
65 char t_eol;
66 char t_eol2;
67 char t_erase;
68 char t_werase;
69 char t_kill;
70 char t_reprint;
71 char t_intr;
72 char t_quit;
73 char t_susp;
74 char t_dsusp;
75 char t_start;
76 char t_stop;
77 char t_lnext;
78 char t_flush;
79 char t_status;
80 } _RL_TTY_CHARS;
81
73 #endif /* _RLTTY_H_ */ 82 #endif /* _RLTTY_H_ */