Mac os x Terminal.app 的缓冲区和屏幕命令

发布于 2024-07-25 13:41:50 字数 146 浏览 1 评论 0原文

我使用 Mac os x Terminal.app 连接到我的远程计算机,然后使用该计算机上的屏幕。

有没有办法使用终端上的滚动条在屏幕缓冲区上来回滚动。 执行 ctrl+a + Esc 然后向上/向下翻页非常痛苦,

谢谢 阿尔文德

I use Mac os x Terminal.app to connect to my remote machine and then use screen on that machine.

Is there a way to use the scrollbars on Terminal to scroll back and forth on the screen's buffer. It is painful to do ctrl+a + Esc and then Page Up/Down

Thanks
Arvind

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

难忘№最初的完美 2024-08-01 13:41:50

要扩展前两个答案:.screenrc

termcapinfo xterm* ti@:te@

行将打开滚动条。 除非您使用 control-A 在同一终端窗口中的多个屏幕会话之间切换,否则这是一个胜利。 Screen 使用所谓的光标寻址模式为每个会话保留单独的历史缓冲区; 上面的 termcapinfo 行告诉它永远不要使用该模式。 然后,所有历史记录都会进入一个缓冲区,即本机终端缓冲区,您将看到来自所有会话的行相互混合。

如今,这仅仅意味着每次在遥控器上登录时都使用单独的终端窗口(或选项卡)——在我看来,恢复滚动条的价格很低。

那么为什么滚动条模式不是默认的呢? 因为在过去的日子里,当我们在雪中步行二十英里到达 80 x 24 字符单元 VT100 时,每个终端只能登录一次。 除非你的办公桌上有两个终端,否则 screen 是城里唯一的多会话游戏。

To expand on the previous two answers: the .screenrc line

termcapinfo xterm* ti@:te@

will turn on your scrollbars. This is a win unless you're using control-A to switch between multiple screen sessions in the same Terminal window. Screen uses what's called cursor addressing mode to keep a separate history buffer for each session; the termcapinfo line above tells it never to use that mode. All history then goes into one buffer, the native Terminal buffer, and you'll see lines from all sessions mixed in with each other.

These days that just means using a separate Terminal window (or tab) for each login on your remote -- a low price to pay for getting your scrollbars back, to my mind.

So why isn't scrollbar mode the default? Because in Ye Olde Tyme Dayes when we walked twenty miles in the snow to our 80 by 24 character-cell VT100s, you could only get one login per terminal. Unless you had two terminals on your desk, screen was the only multi-session game in town.

随心而道 2024-08-01 13:41:50

将以下内容添加到 ~/.screenrc 应该可以满足您的要求。

termcapinfo xterm* ti@:te@

Adding the following to ~/.screenrc should do what you want.

termcapinfo xterm* ti@:te@
美羊羊 2024-08-01 13:41:50

我认为您无法在屏幕中使用终端的滚动条,因为终端只知道 80x25 左右大小的部分,并且显示缓存是在屏幕进程中完成的。

您可以尝试将其绑定到更简单的组合,请参阅手册页的“自定义”部分。

I do not think you will be able to use the terminal's scrollbar in screen, because the terminal only knows about the 80x25 or so sized portion, and the display caching is done in the screen process.

You could try to bind it to an easier combo, see the CUSTOMIZATION section of the man page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文