小编Des*_*ond的帖子

向上/向下翻页打印〜而不是在终端中进行历史搜索

我使用的是配备 mac os x 10.8.2 的 Macbook Pro

我已经设定:

page up: \033[5~
page down: \033[6~
Run Code Online (Sandbox Code Playgroud)

在终端键盘设置中(按 esc 获取 \033)。

我的 ~/.xinputrc 是:

# Be 8 bit clean.

set input-meta on
set output-meta on
set convert-meta off

# Auto completion options
set show-all-if-ambiguous on
set completion-ignore-case on

# Keybindings
"\e[1~": beginning-of-line       # Home key
"\e[4~": end-of-line             # End key
"\e[5~": history-search-backward # Page Up
"\e[6~": history-search-forward  # Page Down
"\e[3~": delete-char             # Delete key
"\e[5C": forward-word            # Ctrl+right
"\e[5D": backward-word           # …
Run Code Online (Sandbox Code Playgroud)

terminal inputrc macbook-pro macos

5
推荐指数
1
解决办法
4006
查看次数

标签 统计

inputrc ×1

macbook-pro ×1

macos ×1

terminal ×1