patch-lesskey_nro 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. $OpenBSD: patch-lesskey_nro,v 1.1 2007/10/26 20:31:19 ajacoutot Exp $
  2. --- lesskey.nro.orig Wed Feb 1 00:55:56 1995
  3. +++ lesskey.nro Fri Oct 26 22:20:02 2007
  4. @@ -1,22 +1,22 @@
  5. .TH LESSKEY 1
  6. .SH NAME
  7. -lesskey \- specify key bindings for less
  8. +clesskey \- specify key bindings for cless
  9. .SH SYNOPSIS
  10. -.B "lesskey [-o output] [input]"
  11. +.B "clesskey [-o output] [input]"
  12. .br
  13. -.B "lesskey -V"
  14. +.B "clesskey -V"
  15. .SH DESCRIPTION
  16. .I Lesskey
  17. is used to specify a set of key bindings to be used by
  18. -.I less.
  19. +.I cless.
  20. The input file is a text file which describes the key bindings,
  21. If the input file is "-", standard input is read.
  22. -If no input file is specified, $HOME/.lesskey is read.
  23. +If no input file is specified, $HOME/.clesskey is read.
  24. The output file is a binary file which is used by
  25. -.I less.
  26. -If no output file is specified, $HOME/.less is written.
  27. +.I cless.
  28. +If no output file is specified, $HOME/.cless is written.
  29. If the output file already exists,
  30. -.I lesskey
  31. +.I clesskey
  32. will overwrite it.
  33. .PP
  34. The input file consists of lines of the form:
  35. @@ -26,7 +26,7 @@ The input file consists of lines of the form:
  36. Whitespace is any sequence of one or more spaces and/or tabs.
  37. The \fIstring\fP is the command key(s) which invoke the action.
  38. The \fIstring\fP may be a single command key, or a sequence of up to 15 keys.
  39. -The \fIaction\fP is the name of the less action, from the list below.
  40. +The \fIaction\fP is the name of the cless action, from the list below.
  41. The characters in the \fIstring\fP may appear literally, or be
  42. prefixed by a caret to indicate a control key.
  43. A backslash followed by one to three octal digits may be used to
  44. @@ -41,22 +41,22 @@ Blank lines and lines which start with a pound sign (#
  45. .PP
  46. An action may be followed by an "extra" string.
  47. When such a command is entered while running
  48. -.I less,
  49. +.I cless,
  50. the action is performed, and then the extra
  51. string is parsed, just as if it were typed in to
  52. -.I less.
  53. +.I cless.
  54. This feature can be used in certain cases to extend
  55. the functionality of a command.
  56. For example, see the "{" and ":t" commands in the example below.
  57. .PP
  58. The -V flag causes
  59. -.I lesskey
  60. +.I clesskey
  61. to print its version number and immediately exit.
  62. Other flags and arguments are ignored.
  63. .SH EXAMPLE
  64. The following input file describes the set of
  65. -default command keys used by less:
  66. +default command keys used by cless:
  67. .sp
  68. .nf
  69. \er forw-line
  70. @@ -147,14 +147,14 @@ default command keys used by less:
  71. .sp
  72. .SH PRECEDENCE
  73. Commands specified by
  74. -.I lesskey
  75. +.I clesskey
  76. take precedence over the default commands.
  77. A default command key may be disabled by including it in the
  78. input file with the action "invalid".
  79. Alternatively, a key may be defined
  80. to do nothing by using the action "noaction".
  81. "noaction" is similar to "invalid", but
  82. -.I less
  83. +.I cless
  84. will give an error beep for an "invalid" command,
  85. but not for a "noaction" command.
  86. In addition, ALL default commands may be disabled by
  87. @@ -185,7 +185,7 @@ one per line as in the example below.
  88. .SH EXAMPLE
  89. The following input file describes the set of
  90. -default line-editing keys used by less:
  91. +default line-editing keys used by cless:
  92. .sp
  93. .nf
  94. #line-edit
  95. @@ -210,6 +210,7 @@ default line-editing keys used by less:
  96. .sp
  97. .SH "SEE ALSO"
  98. +cless(1)
  99. less(1)
  100. .SH COPYRIGHT