[Comm] gnu screen splitting to regions

Evgeny Sinelnikov sin на altlinux.ru
Пт Дек 23 18:53:41 MSK 2016


Здравствуйте,

возможно, это не про screen, но уж точно, ту же функциональность.

В общем, я перешёл на tmux и возрадовался жизни:
# splitting panes
bind | split-window -h
bind - split-window -v

Пример своего конфига прилагаю.



23 декабря 2016 г., 19:20 пользователь Dmitry Derjavin
<dd на altlinux.org> написал:
> Коллеги, добрый день!
>
> Подскажите, пожалуйста, есть ли в нашем screen разбивка экрана на
> вертикальные области? Горизонтальная работает, а вертикальная нет.
> Ни Ctrl-A |, ни Ctrl-A V не работают. В чём может быть дело?
>
> Заранее спасибо!
>
> --
> ~dd
> _______________________________________________
> community mailing list
> community на lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community



-- 
Sin (Sinelnikov Evgeny)
----------- следующая часть -----------
# Setting the prefix from C-b to C-a
set -g prefix C-a

# Free the original Ctrl-b prefix keybinding
unbind-key C-b

# Ensure that we can send Ctrl-A to other apps
bind-key C-b send-prefix

# Bind last windows to CTRL-A + CTRL-A
bind-key C-a last-window

# Set the base index for windows to 1 instead of 0
set -g base-index 1

# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"

# splitting panes
bind | split-window -h
bind - split-window -v

# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Quick pane selection
# START:panetoggle
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# END:panetoggle

# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5

# mouse support - set to on if you want to use the mouse
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on

## Set the default terminal mode to 256color mode
#set -g default-terminal "screen-256color"

# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on

# set the status line's colors
set -g status-fg white
set -g status-bg black

# set the color of the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim

# set colors for the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright

# pane colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow

# Command / message line
set -g message-fg white
set -g message-bg black
set -g message-attr bright

# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=green]#(hostname -s)[#S]: #[fg=yellow]#I #[fg=cyan]#P"

# utf8
set -g status-utf8 on

# Status line right side
# 15% | 28 Nov 18:15
set -g status-right "#[fg=red]%a %d %b %R"
#set -g status-right '#[fg=green]#H #[fg=cyan]%a %d %b %R'

# Update the status bar every sixty seconds
set -g status-interval 60

# Center the window list
set -g status-justify centre

# enable vi keys.
setw -g mode-keys vi

# Set aggressive resize
set-window-option -g aggressive-resize on


Подробная информация о списке рассылки community