[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2.06 RELEASE 3/3] term/terminfo: Fix the terminfo command help an
From: |
Daniel Kiper |
Subject: |
[PATCH 2.06 RELEASE 3/3] term/terminfo: Fix the terminfo command help and documentation |
Date: |
Wed, 14 Apr 2021 17:48:13 +0200 |
Additionally, fix the terminfo spelling mistake in
the GRUB development documentation.
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
---
docs/grub-dev.texi | 2 +-
docs/grub.texi | 4 +++-
grub-core/term/terminfo.c | 4 ++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/grub-dev.texi b/docs/grub-dev.texi
index a834b3a9c..6c629a23e 100644
--- a/docs/grub-dev.texi
+++ b/docs/grub-dev.texi
@@ -820,7 +820,7 @@ Of video is loongson (kern/mips/loongson/init.c). Note that
terminfo has
to be inited in 2 stages: one before (to get at least rudimentary console
as early as possible) and another after the heap (to get full-featured
console).
For the input there are string of keys, terminfo and direct hardware. For
string
-of keys look at i386-pc (same files), for termino ieee1275 (same files) and for
+of keys look at i386-pc (same files), for terminfo ieee1275 (same files) and
for
hardware loongson (kern/mips/loongson/init.c and term/at_keyboard.c).
For the timer you'll need to call grub_install_get_time_ms (...) with as sole
diff --git a/docs/grub.texi b/docs/grub.texi
index e2c58415a..f8b4b3b21 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -3934,7 +3934,7 @@ names active.
@node terminfo
@subsection terminfo
-@deffn Command terminfo [-a|-u|-v] [term]
+@deffn Command terminfo [@option{-a}|@option{-u}|@option{-v}] [@option{-g
WxH}] [term] [type]
Define the capabilities of your terminal by giving the name of an entry in
the terminfo database, which should correspond roughly to a @samp{TERM}
environment variable in Unix.
@@ -3951,6 +3951,8 @@ specifies logically-ordered UTF-8; and @option{-v}
specifies
emulator without bidirectional text support will display right-to-left text
in the proper order; this is not really proper UTF-8, but a workaround).
+The @option{-g} (@option{--geometry}) can be used to specify terminal geometry.
+
If no option or terminal type is specified, the current terminal type is
printed.
@end deffn
diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
index cd7200803..85ecf06b4 100644
--- a/grub-core/term/terminfo.c
+++ b/grub-core/term/terminfo.c
@@ -785,8 +785,8 @@ static grub_extcmd_t cmd;
GRUB_MOD_INIT(terminfo)
{
cmd = grub_register_extcmd ("terminfo", grub_cmd_terminfo, 0,
- N_("[[-a|-u|-v] [-g WxH] TERM [TYPE]]"),
- N_("Set terminfo type of TERM to TYPE.\n"),
+ N_("[[-a|-u|-v] [-g WxH] [TERM] [TYPE]]"),
+ N_("Set terminfo type of TERM to TYPE.\n"),
options);
}
--
2.11.0