2005-10-31 Andrew Stubbs <andrew.stubbs@st.com>
* tui/tui-command.c (tui_dispatch_ctrl_char): Test output of getenv() before using it.
This commit is contained in:
parent
fb10537e39
commit
bbe6b987a5
2 changed files with 30 additions and 22 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-31 Andrew Stubbs <andrew.stubbs@st.com>
|
||||||
|
|
||||||
|
* tui/tui-command.c (tui_dispatch_ctrl_char): Test output of
|
||||||
|
getenv() before using it.
|
||||||
|
|
||||||
2005-10-29 Mark Kettenis <kettenis@gnu.org>
|
2005-10-29 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* hppa-tdep.h (HPPA_INSN_SIZE): New define.
|
* hppa-tdep.h (HPPA_INSN_SIZE): New define.
|
||||||
|
|
|
@ -68,7 +68,9 @@ tui_dispatch_ctrl_char (unsigned int ch)
|
||||||
** Seems like a bug in the curses library?
|
** Seems like a bug in the curses library?
|
||||||
*/
|
*/
|
||||||
term = (char *) getenv ("TERM");
|
term = (char *) getenv ("TERM");
|
||||||
for (i = 0; (term && term[i]); i++)
|
if (term)
|
||||||
|
{
|
||||||
|
for (i = 0; term[i]; i++)
|
||||||
term[i] = toupper (term[i]);
|
term[i] = toupper (term[i]);
|
||||||
if ((strcmp (term, "XTERM") == 0) && key_is_start_sequence (ch))
|
if ((strcmp (term, "XTERM") == 0) && key_is_start_sequence (ch))
|
||||||
{
|
{
|
||||||
|
@ -96,6 +98,7 @@ tui_dispatch_ctrl_char (unsigned int ch)
|
||||||
}
|
}
|
||||||
ch_copy = page_ch;
|
ch_copy = page_ch;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (ch_copy)
|
switch (ch_copy)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue