aboutsummaryrefslogtreecommitdiff
path: root/readline/terminal.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-04-26 18:30:31 +0000
committerStan Shebs <shebs@codesourcery.com>1999-04-26 18:30:31 +0000
commit771578d16036fe218ad98c08540e0c5aae7624e1 (patch)
treefa304264fb14e8d1c771b1d4a1cdfb3c728331bc /readline/terminal.c
parentd60d9f651ab04df95fcd31488fbb46be263382ae (diff)
downloadgdb-771578d16036fe218ad98c08540e0c5aae7624e1.zip
gdb-771578d16036fe218ad98c08540e0c5aae7624e1.tar.gz
gdb-771578d16036fe218ad98c08540e0c5aae7624e1.tar.bz2
import gdb-19990422 snapshot
Diffstat (limited to 'readline/terminal.c')
-rw-r--r--readline/terminal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/readline/terminal.c b/readline/terminal.c
index c286696..f532638 100644
--- a/readline/terminal.c
+++ b/readline/terminal.c
@@ -186,8 +186,10 @@ _rl_get_screen_size (tty, ignore_env)
if (ignore_env == 0 && (ss = get_env_value ("COLUMNS")))
screenwidth = atoi (ss);
+#if !defined(__DJGPP__)
if (screenwidth <= 0 && term_string_buffer)
screenwidth = tgetnum ("co");
+#endif
}
/* Environment variable LINES overrides setting of "li" if IGNORE_ENV
@@ -197,8 +199,10 @@ _rl_get_screen_size (tty, ignore_env)
if (ignore_env == 0 && (ss = get_env_value ("LINES")))
screenheight = atoi (ss);
+#if !defined(__DJGPP__)
if (screenheight <= 0 && term_string_buffer)
screenheight = tgetnum ("li");
+#endif
}
/* If all else fails, default to 80x24 terminal. */
@@ -277,10 +281,12 @@ static void
get_term_capabilities (bp)
char **bp;
{
+#if !defined(__DJGPP__)
register int i;
for (i = 0; i < NUM_TC_STRINGS; i++)
*(tc_strings[i].tc_value) = tgetstr (tc_strings[i].tc_var, bp);
+#endif
tcap_initialized = 1;
}
@@ -530,16 +536,20 @@ ding ()
void
_rl_enable_meta_key ()
{
+#if !defined(__DJGPP__)
if (term_has_meta && term_mm)
tputs (term_mm, 1, _rl_output_character_function);
+#endif
}
void
_rl_control_keypad (on)
int on;
{
+#if !defined(__DJGPP__)
if (on && term_ks)
tputs (term_ks, 1, _rl_output_character_function);
else if (!on && term_ke)
tputs (term_ke, 1, _rl_output_character_function);
+#endif
}