less
キーストロークでプログラムを終了するように設定できますかESC
?
ベストアンサー1
+ を with にEscバインドするには、次のようにします。Escquit
lesskey
~/.lesskey
次の行を使用してファイルを作成します。
\e\e 終了
ランニング
lesskey
。それから。~/.less
less
less
いつものように使用してください。Esc+Escはquit
。
バインディングが不要になったら、ファイルを削除できます~/.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.