Fixed issue with clearing display area
This commit is contained in:
parent
38ef3c8d9e
commit
5f84d69881
4
ask.c
4
ask.c
@ -287,7 +287,9 @@ static char *get_input(FILE *in, FILE *out, const char *prompt, const char *init
|
|||||||
finished:
|
finished:
|
||||||
if (picked) picked = memcheck(strdup(picked));
|
if (picked) picked = memcheck(strdup(picked));
|
||||||
else picked = buf;
|
else picked = buf;
|
||||||
fputs("\0338\033[0m\033[K", out);
|
if (backtrack || prompt[0])
|
||||||
|
fprintf(out, "\033[%dD", backtrack + (int)strlen(prompt));
|
||||||
|
fputs("\033[0m\033[K", out);
|
||||||
return picked;
|
return picked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user