npat-efault / picocom

Minimal dumb-terminal emulation program
GNU General Public License v2.0
644 stars 126 forks source link

How to map back-space to CTRL-H? #106

Open E3V3A opened 5 years ago

E3V3A commented 5 years ago

Many serial devices are using CTRL-H as the "delete" character function (at least on Windows Keyboards), but I don't find a way to map this in picoterm. Any ideas?

edgar-bonet commented 3 years ago

This is a setting of your terminal emulator. When you hit the ⌫ key at the top-right corner of the alphanumeric part of the keyboard, the terminal emulator emits either a backspace character (BS = 0x08 = Ctrl-H) or a delete character (DEL = 0x7f = Ctrl-?). In most terminal emulators, this can be configured. For example, in Gnome Terminal, Menu: Preferences / Default profile / Compatibility / Backspace key generates. Picocom then forwards the received character to the serial port, just like any other character.

Alternatively, if you do not want to mess with the settings of your terminal, you can ask picocom to map DEL to BS on output with the option --omap delbs.