missed refreshing patch
This commit is contained in:
Timothy Stack 2018-12-02 09:34:36 -08:00
parent 42be76c3ba
commit 5769bcbb4a
4 changed files with 5 additions and 6 deletions

View File

@ -1342,6 +1342,7 @@ static void looper()
(void)noecho();
(void)nodelay(lnav_data.ld_window, 1);
#ifdef VDSUSP
{
struct termios tio;
@ -1349,6 +1350,7 @@ static void looper()
tio.c_cc[VDSUSP] = 0;
tcsetattr(STDIN_FILENO, TCSANOW, &tio);
}
#endif
define_key("\033Od", KEY_BEG);
define_key("\033Oc", KEY_END);
@ -1552,7 +1554,6 @@ static void looper()
while ((ch = getch()) != ERR) {
alerter::singleton().new_input(ch);
log_debug("ch %d", ch);
/* Check to make sure there is enough space for a
* character and a string terminator.
*/

View File

@ -86,7 +86,7 @@ static const char *RL_INIT[] = {
"set show-all-if-unmodified on",
"set menu-complete-display-prefix on",
"TAB: menu-complete",
"\"\\x0b\": menu-complete-backward",
"\"\\e[Z\": menu-complete-backward",
NULL
};

View File

@ -140,6 +140,8 @@ private:
this->vem_map[KEY_SRIGHT] = "\033f";
}
this->vem_map[KEY_BTAB] = "\033[Z";
this->vem_input_map[tgetstr((char *)"ce", &area)] = "ce";
this->vem_input_map[tgetstr((char *)"kl", &area)] = "kl";
this->vem_input_map[tgetstr((char *)"kr", &area)] = "kr";
@ -177,9 +179,6 @@ const char *vt52_curses::map_input(int ch, int &len_out)
case 0x7f:
ch = BACKSPACE;
break;
case KEY_BTAB:
ch = BACKTAB;
break;
}
this->vc_map_buffer = (char)ch;
retval = &this->vc_map_buffer; /* XXX probably shouldn't do this. */

View File

@ -126,7 +126,6 @@ public:
const static char BACKSPACE = 8; /*< VT52 Backspace key value. */
const static char BELL = 7; /*< VT52 Bell value. */
const static char STX = 2; /*< VT52 Start-of-text value. */
const static char BACKTAB = 11;
protected: