Compile-time option to allow some prompts remember the input
Define EDIT_GETLIN to make the tty, X11, and Qt4 windowports to remember the input strings for wishing and annotation.
This commit is contained in:
@@ -56,8 +56,13 @@ getlin_hook_proc hook;
|
||||
cw->flags &= ~WIN_STOP;
|
||||
ttyDisplay->toplin = 3; /* special prompt state */
|
||||
ttyDisplay->inread++;
|
||||
#ifdef EDIT_GETLIN
|
||||
custompline(OVERRIDE_MSGTYPE | SUPPRESS_HISTORY, "%s %s", query, bufp);
|
||||
bufp = eos(obufp);
|
||||
#else
|
||||
custompline(OVERRIDE_MSGTYPE | SUPPRESS_HISTORY, "%s ", query);
|
||||
*obufp = 0;
|
||||
#endif
|
||||
for (;;) {
|
||||
(void) fflush(stdout);
|
||||
Strcat(strcat(strcpy(toplines, query), " "), obufp);
|
||||
|
||||
Reference in New Issue
Block a user