GNU Screen Splitting

来源:互联网 发布:先垫付的淘宝单可靠吗 编辑:程序博客网 时间:2024/05/13 00:20

epuck 下用多个命令行窗口
参考:
http://tomlee.co/2011/10/gnu-screen-splitting/

  1. Open a new terminal and execute “screen”

This should present you with the command prompt (you may get a message regarding GNU Screen licensing — simply hit “return” to skip this).

  1. Split the screen vertically

Press CTRL-a SHIFT- (CTRL-a |) to split the screen vertically.

You can use CTRL-a TAB to switch between the panes. Note the blank pane doesn’t do anything useful yet.

  1. Start a command prompt in the blank pane.

Press CTRL-a TAB until you’re in the new, blank pane, then press CTRL-a c to create a new window with a command prompt in this pane.

  1. Split the right pane horizontally

Ensure the right pane has focus (press CTRL-a TAB until the cursor is in the blank pane), then press CTRL-a SHIFT-s (CTRL-a S) to split the pane horizontally.

Again, the new pane is blank and seemingly unresponsive.

  1. Switch to the lower right pane and create a new session.

Use CTRL-a TAB to move focus to the lower right pane we just created, then CTRL-a c to spin up a new shell prompt.

  1. Use CTRL-a TAB to move between the panes and start coding!

Other useful commands

CTRL-a SHIFT-x (CTRL-a X) :close the pane that has focus
CTRL-a d :detach screen from the TTY and put it in the background. Resume with screen -r
CTRL-a n and CTRL-a p :shifts input focus to the next & previous window, respectively.
CTRL-a SHIFT-a (CTRL-a A) :ask you to set the title of the focus window.
CTRL-” :list available windows

0 0
原创粉丝点击