Skip to content

Commit 88e856a

Browse files
author
Daniel Kiper
committed
term/terminfo: Fix the terminfo command help and documentation
Additionally, fix the terminfo spelling mistake in the GRUB development documentation. Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
1 parent 3a1afa1 commit 88e856a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/grub-dev.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ Of video is loongson (kern/mips/loongson/init.c). Note that terminfo has
820820
to be inited in 2 stages: one before (to get at least rudimentary console
821821
as early as possible) and another after the heap (to get full-featured console).
822822
For the input there are string of keys, terminfo and direct hardware. For string
823-
of keys look at i386-pc (same files), for termino ieee1275 (same files) and for
823+
of keys look at i386-pc (same files), for terminfo ieee1275 (same files) and for
824824
hardware loongson (kern/mips/loongson/init.c and term/at_keyboard.c).
825825

826826
For the timer you'll need to call grub_install_get_time_ms (...) with as sole

docs/grub.texi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3934,7 +3934,7 @@ names active.
39343934
@node terminfo
39353935
@subsection terminfo
39363936

3937-
@deffn Command terminfo [-a|-u|-v] [term]
3937+
@deffn Command terminfo [@option{-a}|@option{-u}|@option{-v}] [@option{-g WxH}] [term] [type]
39383938
Define the capabilities of your terminal by giving the name of an entry in
39393939
the terminfo database, which should correspond roughly to a @samp{TERM}
39403940
environment variable in Unix.
@@ -3951,6 +3951,8 @@ specifies logically-ordered UTF-8; and @option{-v} specifies
39513951
emulator without bidirectional text support will display right-to-left text
39523952
in the proper order; this is not really proper UTF-8, but a workaround).
39533953

3954+
The @option{-g} (@option{--geometry}) can be used to specify terminal geometry.
3955+
39543956
If no option or terminal type is specified, the current terminal type is
39553957
printed.
39563958
@end deffn

grub-core/term/terminfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,8 @@ static grub_extcmd_t cmd;
785785
GRUB_MOD_INIT(terminfo)
786786
{
787787
cmd = grub_register_extcmd ("terminfo", grub_cmd_terminfo, 0,
788-
N_("[[-a|-u|-v] [-g WxH] TERM [TYPE]]"),
789-
N_("Set terminfo type of TERM to TYPE.\n"),
788+
N_("[[-a|-u|-v] [-g WxH] [TERM] [TYPE]]"),
789+
N_("Set terminfo type of TERM to TYPE.\n"),
790790
options);
791791
}
792792

0 commit comments

Comments
 (0)