Skip to main content
Tweeted twitter.com/#!/super_user/status/617426521272225796
removed bits from my tmux.conf since it persists with the default settings
Source Link

Question: How do I increase the copy-buffer size in tmux?

Data: When I run the following command...

$ for i in {1..1000}; do echo "$i"; done  

... and highlight the entire output in tmux (using either the mouse or keyboard commands), here is what gets sent to the system pasteboard:

1  
2  
3  
4  
--snip--
205  
206  
207  
208  
20   (<--- Notice where it cuts off)

Triage:

  • This persists when I quit tmux and kill the server, move tmux.conf and launch a fresh tmux instance with the default conf file. (Having to re-learn the default keys was difficult X_X).
  • Also persists on a different machine (again, with default tmux settings) with the exact software (listed below).
  • Also persists in default Terminal.app (again, with default tmux settings)

tmux.conf: Here are what I think are the only relevant bits in tmux.conf

set -g default-terminal "xterm-256color"  
set -g default-command "reattach-to-user-namespace -l zsh"  
set -g history-limit 30000  
setw -g alternate-screen on  
set -g mode-mouse on  
set-window-option -g mode-mouse on  
setw -g mouse-select-window on  
setw -g mouse-select-pane on  
setw -g mouse-resize-pane on  
set-option -g mouse-select-pane on  
set-option -g mouse-select-window on  
setw -g mode-keys vi

System:
OS X 10.9.2
tmux 1.9a (homebrew) + reattach-to-user-namespace (homebrew)
iTerm Build 1.0.0.20140421

Question: How do I increase the copy-buffer size in tmux?

Data: When I run the following command...

$ for i in {1..1000}; do echo "$i"; done  

... and highlight the entire output in tmux (using either the mouse or keyboard commands), here is what gets sent to the system pasteboard:

1  
2  
3  
4  
--snip--
205  
206  
207  
208  
20   (<--- Notice where it cuts off)

Triage:

  • This persists when I quit tmux and kill the server, move tmux.conf and launch a fresh tmux instance with the default conf file. (Having to re-learn the default keys was difficult X_X).
  • Also persists on a different machine (again, with default tmux settings) with the exact software (listed below).
  • Also persists in default Terminal.app (again, with default tmux settings)

tmux.conf: Here are what I think are the only relevant bits in tmux.conf

set -g default-terminal "xterm-256color"  
set -g default-command "reattach-to-user-namespace -l zsh"  
set -g history-limit 30000  
setw -g alternate-screen on  
set -g mode-mouse on  
set-window-option -g mode-mouse on  
setw -g mouse-select-window on  
setw -g mouse-select-pane on  
setw -g mouse-resize-pane on  
set-option -g mouse-select-pane on  
set-option -g mouse-select-window on  
setw -g mode-keys vi

System:
OS X 10.9.2
tmux 1.9a (homebrew) + reattach-to-user-namespace (homebrew)
iTerm Build 1.0.0.20140421

Question: How do I increase the copy-buffer size in tmux?

Data: When I run the following command...

$ for i in {1..1000}; do echo "$i"; done  

... and highlight the entire output in tmux (using either the mouse or keyboard commands), here is what gets sent to the system pasteboard:

1  
2  
3  
4  
--snip--
205  
206  
207  
208  
20   (<--- Notice where it cuts off)

Triage:

  • This persists when I quit tmux and kill the server, move tmux.conf and launch a fresh tmux instance with the default conf file. (Having to re-learn the default keys was difficult X_X).
  • Also persists on a different machine (again, with default tmux settings) with the exact software (listed below).
  • Also persists in default Terminal.app (again, with default tmux settings)

System:
OS X 10.9.2
tmux 1.9a (homebrew) + reattach-to-user-namespace (homebrew)
iTerm Build 1.0.0.20140421

Source Link

How do I increase the copy buffer size in tmux?

Question: How do I increase the copy-buffer size in tmux?

Data: When I run the following command...

$ for i in {1..1000}; do echo "$i"; done  

... and highlight the entire output in tmux (using either the mouse or keyboard commands), here is what gets sent to the system pasteboard:

1  
2  
3  
4  
--snip--
205  
206  
207  
208  
20   (<--- Notice where it cuts off)

Triage:

  • This persists when I quit tmux and kill the server, move tmux.conf and launch a fresh tmux instance with the default conf file. (Having to re-learn the default keys was difficult X_X).
  • Also persists on a different machine (again, with default tmux settings) with the exact software (listed below).
  • Also persists in default Terminal.app (again, with default tmux settings)

tmux.conf: Here are what I think are the only relevant bits in tmux.conf

set -g default-terminal "xterm-256color"  
set -g default-command "reattach-to-user-namespace -l zsh"  
set -g history-limit 30000  
setw -g alternate-screen on  
set -g mode-mouse on  
set-window-option -g mode-mouse on  
setw -g mouse-select-window on  
setw -g mouse-select-pane on  
setw -g mouse-resize-pane on  
set-option -g mouse-select-pane on  
set-option -g mouse-select-window on  
setw -g mode-keys vi

System:
OS X 10.9.2
tmux 1.9a (homebrew) + reattach-to-user-namespace (homebrew)
iTerm Build 1.0.0.20140421