Difference between revisions of "Talk:Tmux"

From ArchWiki
Jump to: navigation, search
(Related software: Close.)
m (Autostart with systemd)
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
==<s> Example configuration</s> ==
+
== New Tmux terminfo ==
I purpose the removal of the example configuration in the main [[Tmux#Configure|article]]. Several default configurations are already provided upon installing tmux. Additionally, the example in the article takes up a great deal of space without explaining the settings. ~ [[User:Filam|Filam]]
+
I suggest changing all references to <code>screen</code> or <code>screen-256color</code> to <code>tmux</code> and <code>tmux-256color</code> as the new terminfo has been added to ncurses 6 (now in stable in Arch). You can find the announcement at http://invisible-island.net/ncurses/NEWS.html#index-t20150502 (the 6th point), or confirm by yourself by going to ''/usr/share/terminfo/t/''. This mainly fixes the italic issue referenced here: https://wiki.archlinux.org/index.php/Tmux#Fix_reverse-video.2Fitalic_mode_in_urxvt. ~ [[User:Nicop06|Nicop06]]
  
::I agree. A sentence stating that example configs can be found in {{ic|/usr/share/tmux/}} should suffice
+
: Agreed [[User:Jasonwryan|jasonwryan]] ([[User talk:Jasonwryan|talk]]) 23:57, 18 October 2015 (UTC)
::[[User:Jasonwryan|Jasonwryan]] 02:39, 28 June 2011 (EDT)
+
  
:::I removed the example configuration and made numerous other changes. Of course, any input on my changes would be appreciated. And since I forgot earlier, I signed my first comment. ~ [[User:Filam|Filam]] 13:57, 28 June 2011 (EDT)
+
:: Actually, it seems that the <code>screen-256color</code> terminfo is working since the upgrade to nurses 6. I suggest completly removing the section to avoid any confusion. [[User:Nicop06|Nicop06]] ([[User talk:Nicop06|talk]]) 21:38, 5 January 2016 (UTC)
  
== <s> Related software </s> ==
+
::: I've been using <code>TERM=tmux-256color</code> since the update. Overall things work, but there are some places and programs which have issues with it. The most common one is prezto (zsh config) doesn't use color for a lot of commands. I believe it fails to detect if term has color and falls back to color-less command arguments. I just [https://github.com/sorin-ionescu/prezto/issues/1059 filed a bug report] for prezto. There were some other issues which I can't remember right now. Maybe some info notice should be added about this. [[User:MaikuMori|MaikuMori]] ([[User talk:MaikuMori|talk]]) 09:15, 6 January 2016 (UTC)
  
Some software that also works well with tmux:
+
:::: So it turned out it's not a bug in <code>prezto</code>, but <code>coreutils</code>. It's tracked [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791921 here]. The fix will be in <code>coreutils-8.25</code>. After that's fixed I see no reason to not use <code>TERM=tmux-256color</code> everywhere. My 2c. [[User:MaikuMori|MaikuMori]] ([[User talk:MaikuMori|talk]]) 21:45, 29 January 2016 (UTC)
* [[Ratpoison]]
+
 
* [[Slim]]
+
== Autostart with systemd ==
:[[User:AskApache|AskApache]], please remember to sign your comments on all discussion pages. ~ [[User:Filam|Filam]] 15:15, 11 October 2011 (EDT)
+
: There are some notable advantages to starting a tmux server at startup.
::Lots of software works well with Tmux. We can not list them all here. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 06:07, 11 September 2012 (UTC)
+
There is also at least one disadvantage, isn't there? Namely that the systemd started tmux will exit when one logs out — unless one has set the “long-running sessions” (or something like that) option in systemd.
 +
[[User:Kseistrup|Kseistrup]] ([[User talk:Kseistrup|talk]]) 08:33, 19 July 2016 (UTC)
 +
 
 +
:This applies to [[systemd/User]] services, but not to the one presented in [[Tmux#Autostart_with_systemd]]. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 08:37, 19 July 2016 (UTC)
 +
 
 +
:: Thanks for clarifying this. [[User:Kseistrup|Kseistrup]] ([[User talk:Kseistrup|talk]]) 09:25, 19 July 2016 (UTC)

Latest revision as of 09:25, 19 July 2016

New Tmux terminfo

I suggest changing all references to screen or screen-256color to tmux and tmux-256color as the new terminfo has been added to ncurses 6 (now in stable in Arch). You can find the announcement at http://invisible-island.net/ncurses/NEWS.html#index-t20150502 (the 6th point), or confirm by yourself by going to /usr/share/terminfo/t/. This mainly fixes the italic issue referenced here: https://wiki.archlinux.org/index.php/Tmux#Fix_reverse-video.2Fitalic_mode_in_urxvt. ~ Nicop06

Agreed jasonwryan (talk) 23:57, 18 October 2015 (UTC)
Actually, it seems that the screen-256color terminfo is working since the upgrade to nurses 6. I suggest completly removing the section to avoid any confusion. Nicop06 (talk) 21:38, 5 January 2016 (UTC)
I've been using TERM=tmux-256color since the update. Overall things work, but there are some places and programs which have issues with it. The most common one is prezto (zsh config) doesn't use color for a lot of commands. I believe it fails to detect if term has color and falls back to color-less command arguments. I just filed a bug report for prezto. There were some other issues which I can't remember right now. Maybe some info notice should be added about this. MaikuMori (talk) 09:15, 6 January 2016 (UTC)
So it turned out it's not a bug in prezto, but coreutils. It's tracked here. The fix will be in coreutils-8.25. After that's fixed I see no reason to not use TERM=tmux-256color everywhere. My 2c. MaikuMori (talk) 21:45, 29 January 2016 (UTC)

Autostart with systemd

There are some notable advantages to starting a tmux server at startup.

There is also at least one disadvantage, isn't there? Namely that the systemd started tmux will exit when one logs out — unless one has set the “long-running sessions” (or something like that) option in systemd. Kseistrup (talk) 08:33, 19 July 2016 (UTC)

This applies to systemd/User services, but not to the one presented in Tmux#Autostart_with_systemd. -- Lahwaacz (talk) 08:37, 19 July 2016 (UTC)
Thanks for clarifying this. Kseistrup (talk) 09:25, 19 July 2016 (UTC)