[BRLTTY] Claude Code not using the native terminal's cursor

Sébastien Hinderer sebastien.hinderer at ens-lyon.org
Fri Mar 27 06:55:27 UTC 2026


Nicolas Pitre (2026/03/26 21:22 -0400):
> > I defined a bunch of such sequences locally sothat become usable from
> > within Emacs.
>
> Which ones?

See attached keymap
-------------- next part --------------
# Bind shift-tab to the ESC[Z sequence
shift keycode 15 = F100
string F100 = "\033[Z"

# Bind shift+enter to \e[13;2u
shift keycode 28 = F101
string F101 = "\033[13;2u"

# Bind C-# to \e[35;5u
control altgr keycode 4 = F102
string F102 = "\033[35;5u"

# Bind C-' to \033[39;5u
control keycode 5 = F103
string F103 = "\033[39;5u"

# Bind C-, to \033[44;5u
control keycode 50 = F104
string F104 = "\033[44;5u"

# Bind C-M-S-left to \033[1;8D
control shift alt keycode 105 = F105
string F105 = "\033[1;8D"

# Bind C-M-S-right to \033[1;8C
control shift alt keycode 106 = F106
string F106 = "\033[1;8C"

# Bind C-S-down to \033[1;6B
control shift keycode 108 = F107
string F107 = "\033[1;6B"

# Bind C-S-left to \033[1;6D
control shift keycode 105 = F108
string F108 = "\033[1;6D"

# Bind C-S-return to \033[1;6D
control shift keycode 28 = F109
string F109 = "\033[13;6u"

# Bind C-S-right to \033[1;6C
control shift keycode 106 = F110
string F110 = "\033[1;6C"

# Bind C-S-up to \033[1;6A
control shift keycode 103 = F111
string F111 = "\033[1;6A"

# Bind control+enter to \e[13;5u
control keycode 28 = F112
string F112 = "\033[13;5u"

# Bind M-S-down to \033[1;4B
alt shift keycode 108 = F113
string F113 = "\033[1;4B"

# Bind M-S-left to \033[1;4D
alt shift keycode 105 = F114
string F114 = "\033[1;4D"

# Bind M-S-return to \033[13;4u
alt shift keycode 28 = F115
string F115 = "\033[13;4u"

# Bind M-S-right to \033[1;4C
alt shift keycode 106 = F116
string F116 = "\033[1;4C"

# Bind M-S-up to \033[1;4A
alt shift keycode 103 = F117
string F117 = "\033[1;4A"

# Bind M-down to \033[1;3B
alt keycode 108 = F118
string F118 = "\033[1;3B"

# Bind M-left to \033[1;3D
alt keycode 105 = F119
string F119 = "\033[1;3D"

# Bind M-right to \033[1;3C
alt keycode 106 = F120
string F120 = "\033[1;3C"

# Bind M-up to \033[1;3A
alt keycode 103 = F121
string F121 = "\033[1;3A"

# Bind S-down to \033[1;2B
shift keycode 108 = F122
string F122 = "\033[1;2B"

# Bind S-left to \033[1;2D
shift keycode 105 = F123
string F123 = "\033[1;2D"

# Bind S-return to \033[13;2u
shift keycode 28 = F124
string F124 = "\033[13;2u"

# Bind S-right to \033[1;2C
shift keycode 106 = F125
string F125 = "\033[1;2C"

# Bind S-up to \033[1;2A
shift keycode 103 = F126
string F126 = "\033[1;2A"

# Bind alt+enter to \e[13;3u
alt keycode 28 = F127
string F127 = "\033[13;3u"

# Translate C-^ to \033[9;5u
control keycode 15 = F129
string F129 = "\033[9;5u"

# Define a dedicated escape sequence to represent M-S-x
alt shift keycode 45 = F130
string F130 = "\033[120;4u"

# C-left
control keycode 105 = F131
string F131 = "\033[1;5D"

# C-right
control keycode 106 = F132
string F132 = "\033[1;5C"

# C-up
control keycode 103 = F133
string F133 = "\033[1;5A"

# C-down
control keycode 108 = F134
string F134 = "\033[1;5B"

# Make C-/ work
control shift keycode 52 = F135
string F135 = "\033[47;5u"

# C-<backspace>
control keycode 14 = F136
string F136 = "\033[8;5u"

# C-<delete>
control keycode 111 = F137
string F137 = "\033[3;5~"

# Control-Meta-\
keycode 126 = Alt
control alt altgr keycode 9 = F138
string F138 = "\033[92;8u"

# M-^
alt keycode 26 = Meta_asciicircum

# M-delete
alt keycode 111 = F139
string F139 = "\033[3;3~"


More information about the BRLTTY mailing list