[kbd] [PATCH 1/2] Replace “-” by “\-” in some manpages when options are mentioned

Michael Schutte michi at uiae.at
Thu Jun 11 22:38:17 MSD 2009


“-” is treated as a hyphen (U+2010) by groff.  “\-” is the intended
ASCII minus sign.

Signed-off-by: Michael Schutte <michi at uiae.at>
---
 man/man1/loadkeys.1.in |    2 +-
 man/man1/openvt.1      |    2 +-
 man/man1/setleds.1     |   10 +++++-----
 man/man1/showkey.1     |    2 +-
 man/man8/setkeycodes.8 |    4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/man/man1/loadkeys.1.in b/man/man1/loadkeys.1.in
index 64031af..7e168e4 100644
--- a/man/man1/loadkeys.1.in
+++ b/man/man1/loadkeys.1.in
@@ -98,7 +98,7 @@ compose ',' 'c' to ccedilla
 .LP
 means that <ComposeKey><,><c> must be combined to <ccedilla>.
 The current content of this table can be see
-using `dumpkeys --compose-only'.
+using `dumpkeys \-\-compose\-only'.
 .SH "LOAD KERNEL STRING TABLE"
 The option
 .I -s
diff --git a/man/man1/openvt.1 b/man/man1/openvt.1
index 8a37094..9a58a80 100644
--- a/man/man1/openvt.1
+++ b/man/man1/openvt.1
@@ -35,7 +35,7 @@ will be made the new current VT.
 .TP
 .I "\-u"
 Figure out the owner of the current VT, and run login as that user.
-Suitable to be called by init. Shouldn't be used with -c or -l.
+Suitable to be called by init. Shouldn't be used with \-c or \-l.
 .TP
 .I "\-l"
 Make the command a login shell. A \- is prepended to the name of the command
diff --git a/man/man1/setleds.1 b/man/man1/setleds.1
index 21b50c9..f484fa0 100644
--- a/man/man1/setleds.1
+++ b/man/man1/setleds.1
@@ -17,23 +17,23 @@ Without arguments,
 prints the current settings.
 With arguments, it sets or clears the indicated flags
 (and leaves the others unchanged). The settings before
-and after the change are reported if the -v flag is given.
+and after the change are reported if the \-v flag is given.
 .LP
 The led flag settings are specific for each VT (and the VT
 corresponding to stdin is used).
 .LP
-By default (or with option -F),
+By default (or with option \-F),
 .B setleds
 will only change the VT flags (and their setting may be
 reflected by the keyboard leds).
 .LP
-With option -D,
+With option \-D,
 .B setleds
 will change both the VT flags and their default settings
 (so that a subsequent reset will not undo the change).
 This might be useful for people who always want to have numlock set.
 .LP
-With option -L,
+With option \-L,
 .B setleds
 will not touch the VT flags, but only change the leds.
 From this moment on, the leds will no longer reflect the VT flags
@@ -53,7 +53,7 @@ INITTY=/dev/tty[1-8]
 for tty in $INITTY; do
 .br
 .in +5m
-setleds -D +num < $tty
+setleds \-D +num < $tty
 .br
 .in -5m
 done
diff --git a/man/man1/showkey.1 b/man/man1/showkey.1
index d695572..654e019 100644
--- a/man/man1/showkey.1
+++ b/man/man1/showkey.1
@@ -3,7 +3,7 @@
 .SH NAME
 showkey \- examine the codes sent by the keyboard
 .SH SYNOPSIS
-showkey [-h|--help] [-a|--ascii] [-s|--scancodes] [-k|--keycodes]
+showkey [\-h|\-\-help] [\-a|\-\-ascii] [\-s|\-\-scancodes] [\-k|\-\-keycodes]
 .SH DESCRIPTION
 .IX "showkey command" "" "\fLshowkey\fR command"  
 .LP
diff --git a/man/man8/setkeycodes.8 b/man/man8/setkeycodes.8
index 702514f..69dee20 100644
--- a/man/man8/setkeycodes.8
+++ b/man/man8/setkeycodes.8
@@ -20,7 +20,7 @@ recognize.
 .SH THEORY
 The usual PC keyboard produces a series of scancodes for each
 key press and key release. (Scancodes are shown by
-\fBshowkey -s\fP, see showkey(1).)
+\fBshowkey \-s\fP, see showkey(1).)
 The kernel parses this stream of scancodes, and converts it to
 a stream of keycodes (key press/release events).
 (Keycodes are shown by \fBshowkey\fP.)
@@ -46,7 +46,7 @@ In 2.6 kernels key codes lie in the range 1-255, instead of 1-127.
 (It might be best to confine oneself to the range 1-239.)
 .LP
 In 2.6 kernels raw mode, or scancode mode, is not very raw at all.
-The code returned by showkey -s will change after use of setkeycodes.
+The code returned by showkey \-s will change after use of setkeycodes.
 A kernel bug. See also
 .BR showkey (1).
 .SH OPTIONS
-- 
1.6.3.1



More information about the kbd mailing list