无法在 Mac 的终端中有效地使用 Screen [英] Unable to use Screen efficiently in Mac's Terminal

查看:28
本文介绍了无法在 Mac 的终端中有效地使用 Screen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该帖子总结了当您的 .zshrc 中有以下内容时,在 Mac 终端中使用 Screen 的问题

The post summarizes problems in using Screen in Mac's terminal when you have the following in your .zshrc

if [[ $STY = '' ]] then screen -xR; fi 

  1. 解决方案 #1 不起作用但解决方案#2 有效: 剪贴板程序:pbcopy、pbpaste 和 xsel 根本不起作用
  2. 在 Mac 中使用 Vim 时的错误:无法在 Screen by .Xresources 中没有分散的窗口.
  3. 已解决: Ctrl A 在终端中停止工作.这表明我需要稍微更改 Screen 的键盘绑定.
  4. 已解决: 使用触摸板滚动不起作用.通过编辑您的 .screenrc 回滚正常工作(包括触摸板)
  5. 已解决:无法为 Screen 设置 Dvorak 键绑定以在 Scrollback mod 中移动.
  6. 如何在 Screen 内使用 pbcopy/pbpaste/xsel?

推荐答案

我通常通过将转义符设置为 ctrl<来解决 ctrl-a 问题/kbd>-z(在运行 screen 时通常不需要经常使用它,因为不是后台进程,您只需启动一个新屏幕).在我的 .screenrc 中:

I usually solve the ctrl-a problem by setting my escape character to ctrl-z (which you generally don't need to use as often when you're running screen, since instead of backgrounding a process, you can just start up a new screen). In my .screenrc:

escape ^Zz

使用触摸板滚动是行不通的;screen 在终端模拟器中充当终端模拟器,并且无论何时在屏幕之间切换, screen 都不可能在 Terminal.app 中切换回滚缓冲区.您将不得不使用屏幕的回滚功能.请参阅这篇文章 有关使用屏幕回滚功能的一些提示.

Scrolling using the touchpad just isn't going to work; screen is acting as a terminal emulator inside a terminal emulator, and it's just not possible for screen to switch the scrollback buffer in Terminal.app whenever you switch between screens. You're going to have to use screen's scrollback features. See this article for some tips on using screen's scrollback features.

这篇关于无法在 Mac 的终端中有效地使用 Screen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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