kovidgoyal / kitty

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

SSH connect interrupted with ctrl + c send encrypted messages to kitty #6448

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug A clear and concise description of what the bug is. If I interrupt ssh connection with ctrl + C before connection established, Kitty performed strangely and some encrypted messages appear in terminal.

To Reproduce Steps to reproduce the behavior:

  1. use ssh command to connect to any host.
  2. press ctrl + c immediately.

Screenshots Screenshot 2023-07-12 at 09 20 29

Environment details

kitty 0.28.1 (07bcc5ba61) created by Kovid Goyal
Darwin winner-pimq.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:19 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8103 a>
ProductName:            macOS ProductVersion:           13.4.1 BuildVersion:            22F82
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/pimq/.config/kitty/kitty.conf

Config options different from defaults:
background_image          /Users/pimq/Downloads/output-onlinepngtools.png
background_image_layout   scaled
copy_on_select            clipboard
cursor_text_color         None
enabled_layouts           ['tall', 'stack']
font_family               Hack Nerd Font
scrollback_lines          100000
startup_session           /Users/pimq/.config/kitty/start_up.conf
text_composition_strategy legacy
window_padding_width      FloatEdges(left=4.0, top=4.0, right=4.0, bottom=4.0)
Added shortcuts:
        f1 →  launch --type=tab --cwd=current taskwarrior-tui
        opt+left →  previous_window
        opt+right →  next_window
Changed shortcuts:
        kitty_mod+x →  toggle_layout stack
Colors:
        active_border_color       #f8f8f2   
        active_tab_background     #f8f8f2   
        active_tab_foreground     #282a36   
        background                #282a36   
        color0                    #21222c   
        color1                    #ff5555   
        color10                   #69ff94   
        color11                   #ffffa5   
        color12                   #d6acff   
        color13                   #ff92df   
        color14                   #a4ffff   
        color2                    #50fa7b   
        color3                    #f1fa8c   
        color4                    #bd93f9   
        color5                    #ff79c6   
        color6                    #8be9fd   
        color7                    #f8f8f2   
        color8                    #6272a4   
        color9                    #ff6e6e   
        cursor                    #f8f8f2   
        foreground                #f8f8f2   
        inactive_border_color     #6272a4   
        inactive_tab_background   #6272a4   
        inactive_tab_foreground   #282a36   
        mark1_background          #ff5555   
        mark1_foreground          #282a36   
        selection_background      #44475a   
        selection_foreground      #ffffff   
        url_color                 #8be9fd   

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                                pimq

This debug output has been copied to the clipboard

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.

ghost commented 1 year ago

dup of #6254