mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 09:10:53 +00:00
(get_cmdline, cl_refresh): If TERMINAL_DUMB
section is always 0. Line is only cleared if !TERMINAL_DUMB.
This commit is contained in:
1 parent
ca6e068bb9
commit
3190c1f483
1 file changed
+5
-1
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user