tmux set -g 마우스 모드가 작동하지 않습니다
나는 둘러보고 사람들은 말하기를
set -g mouse-mode on
tmux를 실행할 때 터미널 출력을 스크롤 할 수 있어야합니다. 그러나 이것을 내 ~/.tmux.conf
파일 tmux set -g mouse-mode on
에 넣고 tmux 세션에있을 때 말하는 후에는 아무것도 변하지 않습니다. 스크롤 할 때 기본 설정으로 vim을 스크롤하는 것처럼 여전히 tmux 외부에 있습니다.
이것이 왜 그런지 아는 사람이 있습니까?
따라서이 옵션은 버전 2.1 (2015 년 10 월 18 일)에서 이름이 변경되었습니다.
로부터 변경 내역 :
Mouse-mode has been rewritten. There's now no longer options for:
- mouse-resize-pane
- mouse-select-pane
- mouse-select-window
- mode-mouse
Instead there is just one option: 'mouse' which turns on mouse support
그래서 이것은 내가 지금 내 .tmux.conf
파일 에서 사용하고있는 것입니다.
set -g mouse on
@ Graham42에서 언급했듯이 마우스 옵션은 버전 2.1에서 변경되었습니다. 스크롤을하려면 먼저 복사 모드를 시작해야합니다. 2.1 이전의 방식과 거의 동일한 스크롤을 가능하게하려면에 다음을 추가하십시오 .tmux.conf
.
set-option -g mouse on
# make scrolling with wheels work
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
창 위로 마우스를 가져 가면 스크롤 할 수 있으며 해당 창을 한 줄씩 스크롤 할 수 있습니다.
출처 : https://groups.google.com/d/msg/tmux-users/TRwPgEOVqho/Ck_oth_SDgAJ
지금 당장 정신을 잃고있는 다른 사람에게 빠르게 머리를 돌리십시오.
https://github.com/tmux/tmux/blob/310f0a960ca64fa3809545badc629c0c166c6cd2/CHANGES#L12
그래서 그것은 단지
:setw -g mouse
이것은 작동해야합니다 :
setw -g mode-mouse on
그런 다음 리소스 다음 구성 파일
tmux source-file ~/.tmux.conf
또는 서버를 죽일
@ Graham42가 말했듯이 버전 2.1에서 마우스 옵션의 이름이 바뀌었지만 ~ / .tmux.conf에 이것을 추가하는 모든 tmux 버전에서 마우스를 사용할 수 있습니다.
is_older="[[ $(tmux -V | cut -d' ' -f2) -lt 2.1 ]] && true || false"
if-shell "$is_older" "set -g mode-mouse on; set -g mouse-resize-pane on;\
set -g mouse-select-pane on; set -g mouse-select-window on" "set -g mouse on"
도움이 되었기를 바랍니다
~ / .tmux.conf에 붙여 넣기
set -g mouse on
터미널에서 실행
tmux source-file ~/.tmux.conf
이 시도. 내 컴퓨터에서 작동합니다.
set -g mouse on
참고 URL : https://stackoverflow.com/questions/11832199/tmux-set-g-mouse-mode-on-doesnt-work
'Programing' 카테고리의 다른 글
목록에서 임의의 항목에 액세스하는 방법? (0) | 2020.04.27 |
---|---|
파이썬에서 목록의 키와 빈 값으로 dict를 초기화하는 방법은 무엇입니까? (0) | 2020.04.27 |
SQL Server 구성 관리자를 찾을 수 없습니다 (0) | 2020.04.27 |
iOS 상태 표시 줄을 숨기는 방법 (0) | 2020.04.27 |
SSL에서 사용하기 위해 Java 키 저장소에서 기존 X.509 인증서 및 개인 키를 가져 오는 방법은 무엇입니까? (0) | 2020.04.27 |