kovidgoyal / kitty

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

cmd+up returns "A" instead of moving line up on Tmux #6604

Closed lightbluepoppy closed 1 year ago

lightbluepoppy commented 1 year ago

Describe the bug When I tested on iTerm2 i was able to navigate through lines using cmd+up. On kitty, however, I cannot since it types A instead of moving line up.

On iTerm2, when I press shift+up it shows A. So I suppose that on kitty, cmd is treated the same as shift when using tmux.

Both Kitty and iTerm2 use zsh.

Other behaviors

To Reproduce Steps to reproduce the behavior:

  1. Open Tmux on Kitty.
  2. Execute something so that your shell have a history.
  3. Press cmd+up
  4. See error

Environment details

❯ brew info tmux
==> tmux: stable 3.3a (bottled), HEAD

Press Ctrl+Shift+F6 (cmd+option+comma on macOS) in kitty, to copy debug output about kitty and its configuration to the clipboard and paste it here.

On older versions of kitty, run kitty --debug-config instead

kitty 0.29.2 (95316fc2dc) created by Kovid Goyal
Darwin lightbluepoppy.JOOWIN 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64
ProductName:        macOS ProductVersion:       13.2.1 BuildVersion:        22D68
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: /bin/zsh
Loaded config files:
  /Users/user/.config/kitty/kitty.conf

Config options different from defaults:
allow_remote_control       yes
background_opacity         0.8
click_interval             0.5
cursor_blink_interval      0.0
cursor_shape               2
cursor_stop_blinking_after 0
enabled_layouts            ['horizontal']
font_family                HackGen35 Console NFJ
font_size                  20.0
hide_window_decorations    2
scrollback_pager           ['less', '+G', '-R']
select_by_word_characters  :@-./_~?&=%+#
shell_integration          frozenset({'no-cursor', 'no-prompt-mark'})
window_border_width        (0, 'pt')
window_margin_width        FloatEdges(left=16.0, top=16.0, right=16.0, bottom=16.0)
Changed shortcuts:
    cmd+n →  new_os_window_with_cwd
    cmd+w →  close_window
    kitty_mod+backspace →  restore_font_size
    kitty_mod+down →  decrease_font_size
    kitty_mod+enter →  new_window_with_cwd
    kitty_mod+up →  increase_font_size
Colors:
    active_border_color        #ffffff   
    background                 #262626   
    color0                     #2f2f2f   
    color1                     #d75f5f   
    color10                    #8fee96   
    color11                    #cd950c   
    color12                    #22c3a1   
    color13                    #775759   
    color14                    #84edb9   
    color15                    #d8d8d8   
    color2                     #d4d232   
    color3                     #af865a   
    color4                     #22c3a1   
    color5                     #775759   
    color6                     #84edb9   
    color7                     #c0b18b   
    color8                     #656565   
    color9                     #d75f5f   
    cursor                     #8fee96   
    foreground                 #c0b18b   
    selection_background       #d75f5f   
    selection_foreground       #2f2f2f   

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                                user

Additional context Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

kovidgoyal commented 1 year ago

map cmd+up to whatever you want it to be using send_text