ubuntu terminal 終端分屏
http://blog.csdn.net/liuxiaoheng1992/article/details/54409711
1.sudo apt-get install terminator
2.這個終端程式可以分屏,常用操作快捷鍵如下:
Ctrl+Shift+O
Split terminals Horizontally.(上下開新視窗)
Ctrl+Shift+E
Split terminals Vertically.(垂直開新視窗)
Ctrl+Shift+Right
Move parent dragbar Right.(放大當前視窗 向右)
Ctrl+Shift+Left
Move parent dragbar Left.
Ctrl+Shift+Up
Move parent dragbar Up.
Ctrl+Shift+Down
Move parent dragbar Down.
Ctrl+Shift+W
Close the current terminal.
Alt+Up
Move to the terminal above the current one.(切換當前視窗)
Alt+Down
Move to the terminal below the current one.
Alt+Left
Move to the terminal left of the current one.
Alt+Right
Move to the terminal right of the current one.
Ctrl+Shift+S
Hide/Show Scrollbar.(隱藏滾動條)
Ctrl+Shift+F
Search within terminal scrollback
Ctrl+Shift+N or Ctrl+Tab
Move to next terminal within the same tab, use Ctrl+PageDown to move to the next tab. If cycle_term_tab is False, cycle within the same tab will be disabled
Ctrl+Shift+P or Ctrl+Shift+Tab
Move to previous terminal within the same tab, use Ctrl+PageUp to move to the previous tab. If cycle_term_tab is False, cycle within the same tab will be disabled
Ctrl+Shift+C
Copy selected text to clipboard
Ctrl+Shift+V
Paste clipboard text
Ctrl+Shift+Q
Quits Terminator
Ctrl+Shift+X (最大化當前視窗)
Toggle between showing all terminals and only showing the current one (maximise).
Ctrl+Shift+Z
Toggle between showing all terminals and only showing a scaled version of the current one (zoom).
Ctrl+Shift+T
Open new tab
Ctrl+Shift+Alt+T
Open new tab at root level, if using extreme_tabs.
Ctrl+PageDown
Move to next Tab
Ctrl+PageUp
Move to previous Tab
Ctrl+Shift+PageDown
Swap tab position with next Tab
Ctrl+Shift+PageUp
Swap tab position with previous Tab
Ctrl+Shift+F
Open buffer search bar to find substrings in the scrollback buffer. Hit Escape to cancel.
Ctrl+Plus (+)
Increase font size. Note: this may require you to press shift, depending on your keyboard
Ctrl+Minus (-)
Decrease font size. Note: this may require you to press shift, depending on your keyboard
Ctrl+Zero (0)
Restore font size to original setting.
F11
Toggle fullscreen(放大當前視窗)
Ctrl+Shift+R
Reset terminal state
Ctrl+Shift+G
Reset terminal state and clear window
3.因為初始化介面不太美觀,可以設定配置檔案,方法如下:
cd ~/.config/terminator/
sudo vim config
如果報錯,Unable to open ~/.config/terminator/config ,解決方法:
開啟terminator終端,然後右擊終端的黑色背景,選擇preference->layouts->add,關閉該視窗即可找到config檔案。
修改配置檔案,我的配置檔案如下:
global_config]
[keybindings]
[profiles]
[[default]]
use_system_font = False # 是否啟用系統字型
login_shell = True
background_darkness = 0.92 # 背景顏色
background_type = transparent
background_image = None
cursor_color = “#3036ec” # 游標顏色
foreground_color = “#00ff00”
show_titlebar = False # 不顯示標題欄,也就是 terminator 中那個預設的紅色的標題欄
custom_command = tmux
font = Ubuntu Mono 15 # 字型設定,後面的數字表示字型大小
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
[[[window0]]]
type = Window
parent = “”
[plugins]