(get_cmdline, cl_refresh): If TERMINAL_DUMB
section is always 0. Line is only cleared if !TERMINAL_DUMB.
This commit is contained in:
parent
ca6e068bb9
commit
3190c1f483
1 changed files with 41 additions and 37 deletions
|
@ -385,7 +385,8 @@ get_cmdline (char *prompt, char *cmdline, int maxlen,
|
|||
if (full)
|
||||
{
|
||||
/* Recompute the section number. */
|
||||
if (lpos + plen < CMDLINE_WIDTH)
|
||||
if ((terminal & TERMINAL_DUMB)
|
||||
|| (lpos + plen < CMDLINE_WIDTH))
|
||||
section = 0;
|
||||
else
|
||||
section = ((lpos + plen - CMDLINE_WIDTH)
|
||||
|
@ -449,6 +450,8 @@ get_cmdline (char *prompt, char *cmdline, int maxlen,
|
|||
pos++;
|
||||
}
|
||||
|
||||
if (! (terminal & TERMINAL_DUMB))
|
||||
{
|
||||
/* Fill up the rest of the line with spaces. */
|
||||
for (; i < start + len; i++)
|
||||
{
|
||||
|
@ -491,6 +494,7 @@ get_cmdline (char *prompt, char *cmdline, int maxlen,
|
|||
}
|
||||
# endif /* SUPPORT_SERIAL */
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialize the command-line. */
|
||||
void cl_init (void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue