Browse Source
misc/pinfo: Fix keybinds, man page.
misc/pinfo: Fix keybinds, man page.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>pull/198/head
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 91 additions and 7 deletions
@ -0,0 +1,16 @@ |
|||
diff --git a/src/parse_config.c b/src/parse_config.c
|
|||
index 6345e7d..84abb1d 100644
|
|||
--- a/src/parse_config.c
|
|||
+++ b/src/parse_config.c
|
|||
@@ -877,9 +877,9 @@ parse_line(char *line)
|
|||
*key = KEY_F(7); |
|||
else if (!(strncmp(temp + 4, "F(8)", 4))) |
|||
*key = KEY_F(8); |
|||
- else if (!(strncmp(temp + 4, "(F9)", 4)))
|
|||
+ else if (!(strncmp(temp + 4, "F(9)", 4)))
|
|||
*key = KEY_F(9); |
|||
- else if (!(strncmp(temp + 4, "(F10)", 5)))
|
|||
+ else if (!(strncmp(temp + 4, "F(10)", 5)))
|
|||
*key = KEY_F(10); |
|||
else if (!(strncmp(temp + 4, "F(11)", 5))) |
|||
*key = KEY_F(11); |
|||
@ -0,0 +1,62 @@ |
|||
diff --git a/doc/pinfo.1.in b/doc/pinfo.1.in
|
|||
index bb285cc..bf16aef 100644
|
|||
--- a/doc/pinfo.1.in
|
|||
+++ b/doc/pinfo.1.in
|
|||
@@ -1,4 +1,4 @@
|
|||
-.TH PINFO 1 "01 Dec 2001"
|
|||
+.TH PINFO 1 "25 Apr 2023"
|
|||
.SH NAME |
|||
.B pinfo |
|||
\- is user-friendly, console-based viewer for Info documents |
|||
@@ -6,6 +6,10 @@
|
|||
.B pinfo |
|||
[\fIoptions\fR] |
|||
[\fBinfopage\fR] |
|||
+.P
|
|||
+.B pman
|
|||
+[\fIman-options\fR]
|
|||
+[\fBman-page\fR]
|
|||
.SH DESCRIPTION |
|||
This is a program for viewing info files. You specify which page you want to |
|||
read by passing it an |
|||
@@ -46,13 +50,7 @@ to the `\fIman\fR' program. Don't be confused if pinfo options, which
|
|||
followed `\fB-m\fR' don't work. When using this option, pinfo does not parse |
|||
the info options as usual! It invokes the man part of program. |
|||
.P |
|||
-You can also call the man function of pinfo in another way. When pinfo is
|
|||
-called with an argv[0] (the program file name), which contains the word 'man'
|
|||
-in its name, the man functions are enabled automatically.
|
|||
-.P
|
|||
-Previously there was a symlink to pinfo, called pman, but I had to remove it
|
|||
-from the distribution, since its name was in conflict with some other
|
|||
-utility. Anyway, you can feel free to create such a link if you wish.
|
|||
+You can also call the man function of pinfo by running \fBpman\fR.
|
|||
.P |
|||
.BR "-r", |
|||
.BR --raw-filename |
|||
diff --git a/doc/pinfo.texi b/doc/pinfo.texi
|
|||
index 9925202..a617e62 100644
|
|||
--- a/doc/pinfo.texi
|
|||
+++ b/doc/pinfo.texi
|
|||
@@ -90,6 +90,9 @@ Keys
|
|||
|
|||
@value{PROGRAM} [@var{options}] [@var{info_page}] |
|||
|
|||
+@noindent
|
|||
+@file{pman} [@var{man-options}] [@var{man_page}]
|
|||
+
|
|||
@value{PROGRAM} is a program for viewing info files. You specify which |
|||
page you want to read by passing it an @var{info_page} argument. This argument |
|||
contains the name of an info page (i.e. @samp{bash}). The program |
|||
@@ -130,10 +133,7 @@ When @value{PROGRAM} is called with an @code{argv[0]} (the program file
|
|||
name), which contains the word @code{man} in its name, the man |
|||
functions are enabled automatically. |
|||
|
|||
-Previously there was a symlink to @value{PROGRAM}, called @code{pman},
|
|||
-but I had to remove it from the distribution, since its name was in
|
|||
-conflict with some other utility. Anyway, you can feel free to create
|
|||
-such a link if you wish.
|
|||
+You can also call the man function of pinfo by running @code{pman}.
|
|||
@item -r, --raw-filename |
|||
uses a raw filename first (i.e. the name which you specified as |
|||
infopage is considered to be a real file in the specified location). |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue