如何关闭“滚动历史"?在 iTerm2 中 [英] How can I turn off "scrolling the history" in iTerm2

查看:47
本文介绍了如何关闭“滚动历史"?在 iTerm2 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了新的 iTerm 2.它在顶部的黄色栏中询问我是否要启用鼠标功能.不幸的是,我已经不记得确切的句子了.

I have installed the new iTerm 2. It asked me in a yellow bar at the top if I'd like to enable a mouse feature. Unfortunately I don't remember the exact sentence anymore.

偶然我批准了.现在,当我在 iTerm 中使用鼠标上的滚轮时,它不再向上滚动,而是会触发命令历史记录.就像我按下上光标一样.

By accident I approved. Now when I use the scroll wheel on the mouse in iTerm, it doesn't scroll the up anymore but instead it goes triggers the command history. Like if I would press the up-cursor.

我找不到正确的设置来再次关闭它.有谁知道我可以在哪里切换这个选项?

I couldn't find the right settings to turn that off again. Does anyone know where I can toggle this option?

感谢您的帮助!

推荐答案

一些终端,包括 iTerm2,有一个功能,当一个全屏程序,如 viscreentmux 正在运行.当这些程序使用备用屏幕来提供有用的功能时,就会发生这种情况.通常,在 iTerm2 中使用备用屏幕时,滚轮鼠标就像滚动条一样,向上/向下滚动整个屏幕.但是当这个功能被启用时,iTerm2 会发送光标向上/向下键,让你的命令历史改变.

A few terminals, including iTerm2, have a feature where they change the behavior of the wheel mouse when a full-screen program such as vi, or screen or tmux is running. This happens when those programs use the alternate screen, to provide a useful function. Normally, when using the alternate screen in iTerm2, the wheel mouse acts like the scrollbar, scrolling the entire screen up/down. But when this feature is enabled, iTerm2 sends cursor up/down keys, making your command-history change.

按照另一条评论中的建议,选择首选项菜单:

As suggested in another comment, select the Preferences menu:

然后选择高级标签.向下滚动到鼠标部分,

and in that, select the Advanced tab. Scroll down to the Mouse section,

并切换条目

滚轮在交替屏幕模式下发送箭头键

.您必须重新启动 iTerm2 才能使更改生效.(使用 iTerm2 v3.1.5 更改无需重启即可生效.)

from Yes to No. You will have to restart iTerm2 for the change to take effect. (With iTerm2 v3.1.5 changes take effect without restarting.)

这篇关于如何关闭“滚动历史"?在 iTerm2 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆