kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
22.14k stars 908 forks source link

Browse last command output does not show anything when triggered from TMUX #7377

Closed chentoast closed 3 weeks ago

chentoast commented 3 weeks ago

Describe the bug

Kitty's <ctrl><shift>g to view the output of the previous command in a pager works in kitty, but when triggered from tmux, the pager pops up but no output is shown.

To Reproduce Steps to reproduce the behavior:

  1. Start tmux
  2. echo 'hello'
  3. Press <ctrl><shift>g
  4. For me, I see the less pager window pop up, but it is not populated with text.

Screenshots If applicable, add screenshots to help explain your problem.

Environment details

tmux -V
tmux 3.4
kitty 0.34.1 (7f61f1f9f3) created by Kovid Goyal
Darwin aster 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64
ProductName:        macOS ProductVersion:       14.3 BuildVersion:      23D56
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /usr/local/bin/fish
Loaded config files:
  /Users/tony/.config/kitty/kitty.conf

Config options different from defaults:
bold_font            Cartograph CF Bold
bold_italic_font     Cartograph CF Italic
font_family          Cartograph CF Demi Bold
font_size            12.0
italic_font          Cartograph CF Demi Bold Italic
window_padding_width FloatEdges(left=15.0, top=15.0, right=15.0, bottom=15.0)
Removed shortcuts:
    cmd+, →  edit_config_file
    cmd+enter →  new_window
    cmd+h →  hide_macos_app
    cmd+k →  clear_terminal to_cursor active
    cmd+m →  minimize_macos_window
    cmd+n →  new_os_window
    cmd+q →  quit
    cmd+t →  new_tab
    cmd+w →  close_tab
    ctrl+cmd+, →  load_config_file
    ctrl+cmd+f →  toggle_fullscreen
    opt+cmd+h →  hide_macos_other_apps
    opt+cmd+r →  clear_terminal reset active
    opt+cmd+s →  toggle_macos_secure_keyboard_entry
    shift+cmd+/ →  open_url https://sw.kovidgoyal.net/kitty/
    shift+cmd+[ →  previous_tab
    shift+cmd+] →  next_tab
    shift+cmd+d →  close_window
    shift+cmd+w →  close_os_window
Colors:
    background           #24211f   
    color0               #282828   
    color1               #cc241d   
    color10              #b8bb26   
    color11              #fabd2f   
    color12              #83a598   
    color13              #d3869b   
    color14              #8ec06c   
    color15              #fbf1c7   
    color2               #98971a   
    color3               #d79921   
    color4               #458588   
    color5               #b16286   
    color6               #689d6a   
    color7               #ebdbb2   
    color8               #928374   
    color9               #fb4934   
    cursor               #fbf1c7   
    foreground           #fcf5e3   
    selection_background #fcf5e3   
    selection_foreground #24211f   

Important environment variables seen by the kitty process:
    PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
    LANG                                en_US.UTF-8
    SHELL                               /bin/zsh
    USER                                tony
kovidgoyal commented 3 weeks ago

See https://sw.kovidgoyal.net/kitty/faq/#i-am-using-tmux-and-have-a-problem