Skip to content

Internal kitty shell has broken backspace when term != xterm-kitty #3870

@egnor

Description

@egnor

Describe the bug
If the term config variable is xterm instead of xterm-kitty, the internal kitty shell (shift-control-escape) seems to have something wrong with its line editing.

(I find it necessary to set term to xterm or similar, otherwise upon ssh to many hosts, they complain that xterm-kitty is not a known terminal type.)

To Reproduce
Steps to reproduce the behavior:

  1. Edit kitty.conf to set term xterm
  2. Start kitty
  3. Press shift-control-escape (with default keymap) to launch a kitty shell windowpane
  4. Type something
  5. Backspace to erase
  6. Instead of erasing, you get extra spaces

Screenshots
This is after typing "hello", then pressing backspace 5 times.
image

Environment details

kitty 0.22.0 (887347106d) created by Kovid Goyal
Linux skully 5.11.0-22-generic #23-Ubuntu SMP Thu Jun 17 00:34:23 UTC 2021 x86_64
Ubuntu 21.04 \n \l
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
Running under:X11
Loaded config files:
  /home/egnor/.config/kitty/kitty.conf

Config options different from defaults:
background            Color(red=48, green=48, blue=48)
background_opacity    0.85
enable_audio_bell     False
font_size             8.0
initial_window_height (50, 'cells')
initial_window_width  (80, 'cells')
linux_display_server  x11
remember_window_size  False
resize_in_steps       True
tab_bar_style         powerline
term                  xterm
visual_bell_duration  0.1

Additional context
This can be reproduced with a kitty.conf as simple as

term xterm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions