Linux 如何在切片“屏幕”终端中上下滚动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18489216/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:41:38  来源:igfitidea点击:

How to scroll up and down in sliced "screen" terminal

linuxubuntuunixterminalgnu-screen

提问by Vor

I just installed screenand like the idea to divide linux terminal into multiple pieces. But I can't figure out one thing: How to scroll up and down, when I'm in screen. When I'm using regular linux terminal I can achieve this with Shift+ Pg Upor Shift+ Pg Dn`. but unfortunatelly it doesn't work in divided terminal.

我刚刚安装screen并喜欢将 linux 终端分成多个部分的想法。但我想不出一件事:当我在screen. 当我使用普通的 linux 终端时,我可以使用Shift+Pg UpShift+ Pg Dn`来实现这一点。但不幸的是它在分开的终端中不起作用。

That's what I mean when saying screenand divided terminal: enter image description here

这就是我说screen和分割终端时的意思: 在此处输入图片说明

And that's a regular termina (just in case): enter image description here

这是一个常规的终点站(以防万一): 在此处输入图片说明

采纳答案by Anthony

Try Control+a, then Escape. After that, you should be able to move your cursor around using the arrow keys.

尝试Control+ a,然后Escape。之后,您应该可以使用箭头键四处移动光标。

回答by Wei-Yan Lin

Press Ctrl-athen [will enter the copy mode, and you can scroll up and down like vimeditor. Leave the copy mode by pressing Escape.

Ctrl-a然后[将进入复制模式,您可以像vim编辑器一样上下滚动。按 退出复印模式Escape

回答by galactica

Ctrl-a(default prefix) + [: Enter copy mode.

Ctrl- a(默认前缀)+ [:进入复制模式。

Esc: Quit copy mode.

Esc: 退出复制模式。

Within copy mode:

在复制模式下:

Ctrl-u, Ctrl-d: Page up/down by certain amount of lines while preserving cursor position (default by half of the screen)

Ctrl- u, Ctrl- d: 在保留光标位置的同时向上/向下翻页一定数量的行(默认为屏幕的一半)

Ctrl-b, Ctrl-f: Page up/down by a full screen

Ctrl- b, Ctrl- f: 全屏上下翻页

回答by Eduardo Cuomo

Use CTRL+ A, then Escapeto enter in "Copy mode". After that, you should be able to move your cursor around using the arrow keys. To exit, press Escapeagain.

使用CTRL+ A,然后Escape进入“复制模式”。之后,您应该可以使用箭头键四处移动光标。要退出,再按Escape一次。

Another way is to do the following to use Mouse Scrollwheel:

另一种方法是执行以下操作以使用Mouse Scrollwheel

echo 'termcapinfo xterm* ti@:te@' >> ~/.screenrc

回答by Sugan

Scrolling works in screen with 'terminator' in ubuntu.

在 ubuntu 中使用“终结者”在屏幕中滚动工作。

sudo apt-get install terminator