Skip to content

Instantly share code, notes, and snippets.

@wwalker
Created December 9, 2019 01:32
Show Gist options
  • Save wwalker/d60125ab9f2e52ff5867c2c9aa29e7bc to your computer and use it in GitHub Desktop.
Save wwalker/d60125ab9f2e52ff5867c2c9aa29e7bc to your computer and use it in GitHub Desktop.
tmux attach acts differently
wwalker@polonium:~ ✓ $ grep TERM tmux-server-30474.log
1575853908.712755 client 0x55f889203a60 IDENTIFY_TERM xterm-256color
1575853908.716903 window_pane_spawn: environment TERM=screen
1575853908.716905 window_pane_spawn: environment TERMINAL=xterm
1575853908.719791 client 0x55f889203a60 IDENTIFY_ENVIRON TERMINAL=xterm
1575853908.719872 client 0x55f889203a60 IDENTIFY_ENVIRON TERM=xterm-256color
1575853908.721750 window_pane_spawn: environment TERM=screen-256color
1575853908.721752 window_pane_spawn: environment TERMINAL=xterm
1575853927.777034 client 0x55f8892226a0 IDENTIFY_TERM xterm-256color
1575853927.777394 client 0x55f8892226a0 IDENTIFY_ENVIRON TERMINAL=xterm
1575853927.777671 client 0x55f8892226a0 IDENTIFY_ENVIRON TERM=xterm-256color
wwalker@polonium:~ ✓ $ grep TERM tmux-server-30860.log
1575853938.117488 client 0x56453eec7a30 IDENTIFY_TERM xterm-256color
1575853938.122316 window_pane_spawn: environment TERM=screen
1575853938.122318 window_pane_spawn: environment TERMINAL=xterm
1575853938.124850 client 0x56453eec7a30 IDENTIFY_ENVIRON TERMINAL=xterm
1575853938.124928 client 0x56453eec7a30 IDENTIFY_ENVIRON TERM=xterm-256color
1575853939.868342 input_parse: %0 ground, 10 bytes: echo $TERM
1575853939.868354 screen_write_collect_end: 10 echo $TERM (at 23,0)
1575853939.868380 /dev/pts/0: echo $TERM
wwalker@polonium:~ ✓ $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment