News for hackers. Stuff that matters.
Re:GNU Screen 5.0 Released by WhatIsDukkha on Thursday August 29, 2024 @01:10PM (#41393021)
Tmux allows you to start multiple windows and send commands to them.

An example from man tmux -

"

refresh-client -t/dev/ttyp2

rename-session -tfirst newname

set-option -wt:0 monitor-activity on

new-window ; split-window -d

bind-key R source-file ~/.tmux.conf \; \ display-message "source-file done"

"

Screen has no equivalent besides manually using the keybinds.

I believe tmux has some better mechanics around the attach/detach but it eludes me atm what was better.

Basically what made me switch in the first place from screen to tmux was wanting a split window watch compile and a logfile to run automatically with one command.

Hard with screen and easy with tmux.

There are no comments on this comment yet.