Re: Weirdness with backspace on python and bash
Daniel <[email protected]> Sun, 19 Oct 2025 17:01:58 -0700
| Newsgroups | alt.bbs.mystic |
|---|---|
| Organization | Newshosting.com - Highest quality at a great price! www.newshosting.com |
| Message-ID | <87h5vul9u1.fsf@rpi3> |
Christian Sacks <[email protected]> writes: > 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... Thank you so much broham. It appears, though, I can only implement one. When I do: stty erase '^[[C' && stty erase '^DD' && stty erase '^H' ... the arrow keys still output the junk.