1. Tmux version check
The code depending on the tmux version.
Tmux 버전에 따라 작성할 코드가 달라진다.
tmux version check command
$ tmux -V
you can find your tmux version with this code.
위의 명령어를 통해 자신의 tmux 버전을 알 수 있다.
tmux version less than 2.1
if the version is less than 2.1, follow this.
2.1 미만의 버전일 경우 다음과 같이 수행한다.
make tmux.conf file.
$ vim ~/tmux.conf
code
set -g mode-mouse on
tmux version greater than 2.1
if the version is 2.1 or greater than 2.1, follow this.
2.1 이상의 버전일 경우 다음과 같이 수행한다.
make tmux.conf file.
$ vim ~/tmux.conf
code
set -g mouse on
2. Usage of scroll
You cannot use without any tmux command.
tmux 명령어 없이는 바로 사용할 수 없다.
Ctrl + b + [
You can use scroll using mouse on tmux shell with this command.
tmux 쉘에서 이 명령어를 통해 마우스로 스크롤을 사용할 수 있다.
3. Example of usage
root@ubuntu:~# test1 [7/7]
Command 'test1' not found, did you mean:
command 'test' from deb coreutils (8.30-1ubuntu1)
command 'testr' from deb python3-testrepository (0.0.20-3)
command 'testr' from deb python-testrepository (0.0.20-3)
Try: apt install <deb name>
root@ubuntu:~# test2
Command 'test2' not found, did you mean:
command 'testr' from deb python3-testrepository (0.0.20-3)
command 'testr' from deb python-testrepository (0.0.20-3)
command 'test' from deb coreutils (8.30-1ubuntu1)
Try: apt install <deb name>
root@ubuntu:~#
root@ubuntu:~#
root@ubuntu:~#
root@ubuntu:~#
root@ubuntu:~#
root@ubuntu:~#
root@ubuntu:~#
root@ubuntu:~#