kovidgoyal / kitty

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

Text scrambling on remote ssh server #4727

Closed YuCao16 closed 2 years ago

YuCao16 commented 2 years ago

Describe the bug When I use ssh to remote control a Mac, if I type exit for example, I get exitexexiexit. It seems not kitty's fault, since I using zsh-autosuggestion and clearly it is some autosuggestion right there, and if I use bash ssh user@ -t bash it works fine. I tested on Iterm2 (and terminal) and it works fine however, so I would like to ask if there are something I can do to make it works?

Environment details

kitty 0.24.2 created by Kovid Goyal
Darwin caoyudembp.mynet 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000 arm64
ProductName:    macOS ProductVersion:   12.2.1 BuildVersion:    21D62
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/caoyu/.config/kitty/kitty.conf

Config options different from defaults:
background_image           /Users/caoyu/Pictures/background_term.png
background_image_layout    scaled
bold_font                  meslolgs nf
confirm_os_window_close    1
copy_on_select             clipboard
cursor_blink_interval      0.0
cursor_stop_blinking_after 0
font_family                meslolgs nf
font_size                  15.0
macos_thicken_font         0.75
tab_bar_edge               1
tab_bar_style              powerline
Changed shortcuts:
    cmd+1 → goto_tab 1
Colors:
    cursor                     #5ffdff   

Environment variable names seen by the kitty process:
    COMMAND_MODE
    HOME
    LOGNAME
    LaunchInstanceID
    PATH
    SECURITYSESSIONID
    SHELL
    SSH_AUTH_SOCK
    SSL_CERT_FILE
    TMPDIR
    USER
    XPC_FLAGS
    XPC_SERVICE_NAME
    __CFBundleIdentifier
    __CF_USER_TEXT_ENCODING
kovidgoyal commented 2 years ago

https://sw.kovidgoyal.net/kitty/faq.html#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-when-sshing-into-a-different-computer

YuCao16 commented 2 years ago

I can't believe you replied so quickly and it works, I'm sorry I didn't see this paragraph of the document.