Fix so that lpc's interactive-mode will not be confused by EditLine processing
into thinking that there is a print-queue called 'xterm'... Reviewed by: short discussion on freebsd-stable MFC after: 1 week
This commit is contained in:
parent
7032f49f4d
commit
a4c7cc9f12
@ -169,6 +169,15 @@ cmdscanner(void)
|
||||
el_set(el, EL_PROMPT, lpc_prompt);
|
||||
el_set(el, EL_SIGNAL, 1);
|
||||
el_source(el, NULL);
|
||||
/*
|
||||
* EditLine init may call 'cgetset()' to set a
|
||||
* capability-db meant for termcap (eg: to set
|
||||
* terminal type 'xterm'). Reset that now, or
|
||||
* that same db-information will be used for
|
||||
* printcap (giving us an "xterm" printer, with
|
||||
* all kinds of invalid capabilities...).
|
||||
*/
|
||||
cgetset(NULL);
|
||||
}
|
||||
if ((bp = el_gets(el, &num)) == NULL || num == 0)
|
||||
quit(0, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user