Lessを終了するには、ESCキーを押します。

Lessを終了するには、ESCキーを押します。

lessキーストロークでプログラムを終了するように設定できますかESC

ベストアンサー1

+ を with にEscバインドするには、次のようにします。Escquitlesskey

  1. ~/.lesskey次の行を使用してファイルを作成します。
\e\e 終了
  1. ランニングlesskey。それから。~/.lessless

  2. lessいつものように使用してください。Esc+Escquit

バインディングが不要になったら、ファイルを削除できます~/.less


man lesskey詳細はパッケージソースコードlesskey.nroで確認できますless
Debian - wheezyのソースパッケージに関する詳細情報

SYNOPSIS
       lesskey [-o output] [--] [input]

The input file is a text file which describes the key bindings.
If the input file is "-", standard input is read.
If no input file is specified, a standard filename is used
as the name of the input file, which depends on the system being used:
On Unix systems, $HOME/.lesskey is used;
on MS-DOS systems, $HOME/_lesskey is used;
and on OS/2 systems $HOME/lesskey.ini is used,
or $INIT/lesskey.ini if $HOME is undefined.

おすすめ記事