GNU Screen Splitting

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值