You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open micro, write something, put the cursor at the start of the file, press the delete key
Expected behaviour
A character to the right of the cursor gets deleted
Actual behaviour
Nothing happens.
Possible cause:
Because of #1093 I had to set TERM=xterm-256color before launching micro, and the terminfo files of xterm-256color and st-256color probably differ, so this will be probably solved by resolving #1093 and setting TERM back to st-256color.
The workaround is to add "\u001b[P": "Delete" to bindings config.
At this point, unfortunately, this workaround or a form of it will most likely be here forever. Thank you for this suggestion, though, for it makes everything work as expected.
I also added the following to make CTRL + Delete work properly, I hope it can help some:
Activity
redmosaic commentedon Jun 14, 2019
I use st with TERM=st-256color and delete key doesn't work for me either. I suppose that it's because micro doesn't sent smkx code at start.
More info at https://git.suckless.org/st/file/FAQ.html
redmosaic commentedon Jun 14, 2019
I uploaded .tcelldb for st so you can use TERM=st-256color too.
https://www.opendesktop.org/dl?file_id=1560542546&file_type=application/octet-stream&file_name=.tcelldb&file_size=3569&project_id=1157805
vaygr commentedon Mar 26, 2024
With the latest stack and version of micro I get the
Pcharacter inserted on every Delete key press.The workaround is to add
"\u001b[P": "Delete"to bindings config.Atemo-C commentedon May 20, 2024
At this point, unfortunately, this workaround or a form of it will most likely be here forever. Thank you for this suggestion, though, for it makes everything work as expected.
I also added the following to make
CTRL + Deletework properly, I hope it can help some:EDIT:
And this one for
CTRL + Backspace:Andriamanitra commentedon Oct 29, 2026
I'm not sure if anyone is still suffering from this issue but the tcell/v3 branch may help, it fixes a lot of similar issues:
tcellto our fork of the upstreamv3baseline with escape sequence support #4174