davidson wrote:
> On Tue, 23 Jun 2020 Victor Sudakov wrote:
> > davidson wrote:
> > > [Victor Sudakov OP wrote:]
> > > > I'm trying to switch from screen to tmux
> [snip]
> 
> I've thought about the same thing, but inertia is seductive, and I
> have remained --so far-- unaware of specific reasons to bother
> changing.

I have a reason but not Debian-related. Since some version, screen has
started enforcing the "screen.xterm-256color" (sic!) terminal type which
is missing from FreeBSD's terminal definitions:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246029

[dd]

> 
> In my Gnu screen setup, the corresponding key sequence (unchanged from
> package defaults in this respect, afaict) is
> 
>   Ctrl-a a
> 
> And so to emulate that I would probably replace this line
> 
>   bind-key C-a send-prefix
> 
> with this one instead
> 
>   bind-key a send-prefix
> 
> so that old muscle-memory would remain useful.

Yes, this is much better, thank you.

> 
> > > I started my first session with this command:
> > > 
> > >   $ tmux attach
> > 
> > It is quite counter-intuitive to start a *first* session with "tmux
> > attach",
> 
> I agree, but I'm not sure how much my intuition, or my expectations of
> what constitutes "normal behavior" for a terminal multiplexer, has
> been shaped/warped by habituation to Gnu screen idioms.
> 
> It looks like tmux works a little differently. In particular, it uses
> its config files a little differently than Gnu screen uses ~/.screenrc

[dd]

Thank you for the detailed write up, very informative.

Also, if you have the "termcapinfo xterm* ti@:te@" command in screenrc,
you might find the following command for tmux.conf useful: 

set-option -ga terminal-overrides ',xterm*:smcup@:rmcup@

It prevents tmux from requesting the alternate screen from its parent
terminal, which is possibly what the Xfce or Gnome terminal is using to
decide if it should send the fake Cursor Up/Down keys when scrolling the
mouse wheel.

Without these commands, after starting screen or tmux, the mouse wheel
in Xfce Terminal starts scrolling through command history instead of the
terminal buffer, which can be quite annoying and even dangerous.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

Attachment: signature.asc
Description: PGP signature

Reply via email to