Re: Weirdness with backspace on python and bash

Christian Sacks <[email protected]> Sat, 18 Oct 2025 06:00:01 +0000
Newsgroups alt.bbs.mystic
Organization Dragon's Lair, PyGate NNTP<>Fido Gate
Message-ID <[email protected]>
On 15 Oct 2025, Daniel said the following...

 Da> each key I press. I don't care if arrows work or not. But I'd like
 Da> backspace to work as designed instead of spamming my screen.
 Da>
 Da> Key              Output
 Da> Backspace        ^H
 Da> Right arrow      ^[[C
 Da> Left Arrow       ^[[D
When calling the script from the menu editor, do something like;
Command | (DD) Exec external program
Data    | stty erase '^H' && /mystic/themes/default/scripts/scriptname.sh
That's how I got around the backspace as delete issue, this should help you find the answer to the other keys too.
Cheers!
.... We all live in a yellow subroutine...