diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-19 05:06:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-19 05:06:34 +0000 |
commit | bcdf15685fdb5cd64dc3026cb0f1ed7fa2e66cbe (patch) | |
tree | cab44a0bc71e6a6432018ccfdc828f6df69fa4fb /gdb/tui/tui-command.c | |
parent | 130d87e6f789b24f69cc38888670ebf9ce31529c (diff) | |
download | gdb-bcdf15685fdb5cd64dc3026cb0f1ed7fa2e66cbe.zip gdb-bcdf15685fdb5cd64dc3026cb0f1ed7fa2e66cbe.tar.gz gdb-bcdf15685fdb5cd64dc3026cb0f1ed7fa2e66cbe.tar.bz2 |
2004-01-18 Andrew Cagney <cagney@redhat.com>
* tui/tui-io.c: Update copyright.
(key_is_end_sequence, key_is_backspace): New functions.
(key_is_command_char, key_is_start_sequence): New function.
(tui_getc): Update references.
* tui/tui-io.h: Update copyright.
(m_tuiStartNewLine): Delete macro.
(m_isBackspace, m_isDeleteChar): Delete macros.
(m_isDeleteLine, m_isDeleteToEol): Delete macros.
(m_isNextPage, m_isPrevPage): Delete macros.
(m_isLeftArrow, m_isRightArrow): Delete macros.
(m_isXdbStyleCommandChar): Delete macro.
(key_is_start_sequence): Declare, replace m_isStartSequence.
(key_is_end_sequence): Declare, replace m_isEndSequence.
(key_is_backspace): Declare ,replace m_isBackspace.
(key_is_command_char): Declare, replace m_isCommandChar.
* tui/tui-command.c: Update copyright.
(tuiDispatchCtrlChar): Update references.
Diffstat (limited to 'gdb/tui/tui-command.c')
-rw-r--r-- | gdb/tui/tui-command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c index 8fcf0dd..551a534 100644 --- a/gdb/tui/tui-command.c +++ b/gdb/tui/tui-command.c @@ -1,7 +1,7 @@ /* Specific command window processing. - Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, - Inc. + Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. Contributed by Hewlett-Packard Company. @@ -78,12 +78,12 @@ tuiDispatchCtrlChar (unsigned int ch) term = (char *) getenv ("TERM"); for (i = 0; (term && term[i]); i++) term[i] = toupper (term[i]); - if ((strcmp (term, "XTERM") == 0) && m_isStartSequence (ch)) + if ((strcmp (term, "XTERM") == 0) && key_is_start_sequence (ch)) { unsigned int pageCh = 0, tmpChar; tmpChar = 0; - while (!m_isEndSequence (tmpChar)) + while (!key_is_end_sequence (tmpChar)) { tmpChar = (int) wgetch (w); if (tmpChar == ERR) |