kovidgoyal / kitty

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

Running sudo -s on macOS breaks the output #6528

Closed frostplexx closed 1 year ago

frostplexx commented 1 year ago

Describe the bug Running sudo -s completely breaks the terminal (see video) until you exit the root user. I believe that this is a kitty bug as this behaviour does not happen on other terminals such as the built in one or alacritty.

To Reproduce Steps to reproduce the behavior:

  1. Run sudo -s
  2. Type anything else while logged in as root

Screenshots

https://github.com/kovidgoyal/kitty/assets/62436912/d885d16b-2dd4-4e53-b468-5856b12a9438

Environment details

kitty 0.29.2 (95316fc2dc) created by Kovid Goyal
Darwin Daniels-MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64
ProductName:        macOS ProductVersion:       13.5 BuildVersion:      22G74
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/daniel/.config/kitty/kitty.conf

Config options different from defaults:
font_family                JetBrainsMono Nerd Font
font_size                  13.0
macos_show_window_title_in none
macos_titlebar_color       1
tab_bar_style              powerline
tab_powerline_style        slanted
window_margin_width        FloatEdges(left=5.0, top=5.0, right=5.0, bottom=5.0)
Colors:
    active_border_color        #b7bdf8   
    active_tab_background      #c6a0f6   
    active_tab_foreground      #181926   
    background                 #24273a   
    bell_border_color          #eed49f   
    color0                     #494d64   
    color1                     #ed8796   
    color10                    #a6da95   
    color11                    #eed49f   
    color12                    #8aadf4   
    color13                    #f5bde6   
    color14                    #8bd5ca   
    color15                    #a5adcb   
    color2                     #a6da95   
    color3                     #eed49f   
    color4                     #8aadf4   
    color5                     #f5bde6   
    color6                     #8bd5ca   
    color7                     #b8c0e0   
    color8                     #5b6078   
    color9                     #ed8796   
    cursor                     #f4dbd6   
    cursor_text_color          #24273a   
    foreground                 #cad3f5   
    inactive_border_color      #6e738d   
    inactive_tab_background    #1e2030   
    inactive_tab_foreground    #cad3f5   
    mark1_background           #b7bdf8   
    mark1_foreground           #24273a   
    mark2_background           #c6a0f6   
    mark2_foreground           #24273a   
    mark3_background           #7dc4e4   
    mark3_foreground           #24273a   
    selection_background       #f4dbd6   
    selection_foreground       #24273a   
    tab_bar_background         #181926   
    url_color                  #f4dbd6   

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                                daniel
kovidgoyal commented 1 year ago

https://sw.kovidgoyal.net/kitty/faq/#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-or-functional-keys-like-arrow-keys-don-t-work