2014-09-21 92 views
-3

我在Tera Term 4.84上通过SSH在Ubuntu 14.04.1 LTS上使用zsh 5.0.2。
我的.zshrc是在这里(我的用户名被替换为$ USERNAME):如何让我的鼠标滚轮在zsh上滚动屏幕?

# Lines configured by zsh-newuser-install 
HISTFILE=~/.zsh_history 
HISTSIZE=50 
SAVEHIST=50 
bindkey -e 
# End of lines configured by zsh-newuser-install 
# The following lines were added by compinstall 
zstyle :compinstall filename '/home/$USERNAME/.zshrc' 

autoload -Uz compinit 
compinit 
# End of lines added by compinstall 

PROMPT="%[email protected]%m:%c%# " 

在我的壳,当我转动鼠标滚轮, 命令历史记录移动,而不是滚动屏幕。

在另一台主机(Ubuntu 12.04.5 LTS) 上的Zsh 4.3.17可以通过鼠标滚轮使用相同的客户端进行滚动。

如何在不按下Ctrl键的情况下使用我的鼠标滚轮滚动我的zsh?


这个问题也问这里(日本):http://dixq.net/forum/viewtopic.php?f=3&t=15586

+2

听起来很像一个终端模拟器问题,而不是zsh。 – 2014-09-21 12:10:33

回答

1

由于@jimmij指出,这与万亿期限的问题,而不是zsh

根据Tera Term documentation,有两个配置选项可控制鼠标滚轮的行为:TranslateWheelToCursorDisableWheelToCursorByCtrl。它们的默认值为:

TranslateWheelToCursor=on 
DisableWheelToCursorByCtrl=on 

设置TranslateWheelToCursor=off应该禁用默认滚轮行为。