aboutsummaryrefslogtreecommitdiffstats
path: root/src/termchar.h
diff options
context:
space:
mode:
authorXue Fuqiao2013-09-04 08:39:34 +0800
committerXue Fuqiao2013-09-04 08:39:34 +0800
commitadf2fc4a01efe77d73cd52bc9173914ed56ff531 (patch)
treea5a280a5554a7bffeaf94fccae29fa3ac1a5d066 /src/termchar.h
parent63191d9f2043d2e67657e85a7b3842805dd1dad6 (diff)
parent38726039b77db432989fed106c88e9f1aa463281 (diff)
downloademacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.gz
emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.zip
Merge from mainline.
Diffstat (limited to 'src/termchar.h')
-rw-r--r--src/termchar.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/termchar.h b/src/termchar.h
index 1c8e8646d4e..687f7fbd119 100644
--- a/src/termchar.h
+++ b/src/termchar.h
@@ -16,6 +16,8 @@ GNU General Public License for more details.
16You should have received a copy of the GNU General Public License 16You should have received a copy of the GNU General Public License
17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
18 18
19#include "dispextern.h"
20
19/* Each termcap frame points to its own struct tty_output object in 21/* Each termcap frame points to its own struct tty_output object in
20 the output_data.tty field. The tty_output structure contains the 22 the output_data.tty field. The tty_output structure contains the
21 information that is specific to termcap frames. */ 23 information that is specific to termcap frames. */
@@ -28,6 +30,10 @@ struct tty_output
28 /* There is nothing else here at the moment... */ 30 /* There is nothing else here at the moment... */
29}; 31};
30 32
33#ifndef TERMINFO
34enum { TERMCAP_BUFFER_SIZE = 4096 };
35#endif
36
31/* Parameters that are shared between frames on the same tty device. */ 37/* Parameters that are shared between frames on the same tty device. */
32 38
33struct tty_display_info 39struct tty_display_info
@@ -72,14 +78,15 @@ struct tty_display_info
72 mouse-face. */ 78 mouse-face. */
73 Mouse_HLInfo mouse_highlight; 79 Mouse_HLInfo mouse_highlight;
74 80
81#ifndef TERMINFO
75 /* Buffer used internally by termcap (see tgetent in the Termcap 82 /* Buffer used internally by termcap (see tgetent in the Termcap
76 manual). Only init_tty and delete_tty should change this. */ 83 manual). Only init_tty should use this. */
77 char *termcap_term_buffer; 84 char termcap_term_buffer[TERMCAP_BUFFER_SIZE];
78 85
79 /* Buffer storing terminal description strings (see tgetstr in the 86 /* Buffer storing terminal description strings (see tgetstr in the
80 Termcap manual). Only init_tty and delete_tty should change 87 Termcap manual). Only init_tty should use this. */
81 this. */ 88 char termcap_strings_buffer[TERMCAP_BUFFER_SIZE];
82 char *termcap_strings_buffer; 89#endif
83 90
84 /* Strings, numbers and flags taken from the termcap entry. */ 91 /* Strings, numbers and flags taken from the termcap entry. */
85 92