* lisp/textmodes/two-column.el: Make 2C-split work for --without-x.
[bpt/emacs.git] / src / termchar.h
index 1c8e864..11cea34 100644 (file)
@@ -16,6 +16,8 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#include "dispextern.h"
+
 /* Each termcap frame points to its own struct tty_output object in
    the output_data.tty field.  The tty_output structure contains the
    information that is specific to termcap frames. */
@@ -28,6 +30,8 @@ struct tty_output
   /* There is nothing else here at the moment... */
 };
 
+enum { TERMCAP_BUFFER_SIZE = 4096 };
+
 /* Parameters that are shared between frames on the same tty device. */
 
 struct tty_display_info
@@ -73,13 +77,12 @@ struct tty_display_info
   Mouse_HLInfo mouse_highlight;
 
   /* Buffer used internally by termcap (see tgetent in the Termcap
-     manual).  Only init_tty and delete_tty should change this.  */
-  char *termcap_term_buffer;
+     manual).  Only init_tty should use this.  */
+  char termcap_term_buffer[TERMCAP_BUFFER_SIZE];
 
   /* Buffer storing terminal description strings (see tgetstr in the
-     Termcap manual).  Only init_tty and delete_tty should change
-     this.  */
-  char *termcap_strings_buffer;
+     Termcap manual).  Only init_tty should use this.  */
+  char termcap_strings_buffer[TERMCAP_BUFFER_SIZE];
 
   /* Strings, numbers and flags taken from the termcap entry.  */