What is Nostr?
blinry /
npub1xh9…azuf
2024-12-03 16:01:17

blinry on Nostr: I'm building a tiny terminal emulator from scratch, to better understand how they ...

I'm building a tiny terminal emulator from scratch, to better understand how they work!

And I found something cool: My backspace key wasn't working. I was sending ASCII 0x8 to `sh`, but it just replied with "^H".

Turns out you can change that! `stty -a` showed me that the erase character was set to "^?" (whatever that is). So I changed it with `stty erase ^H", and now it works!

`sh` even outputs the sequence <backspace><space><backspace>, like a typewriter "overtyping" a letter with a space!


Author Public Key
npub1xh9fh6cs7c5zhhz330pz4s5kdwg44aq7xu33f6ylxtedkjj6g6ysvuazuf