d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
647 stars 45 forks source link

Handle different backspace key codes #14

Closed bit69tream closed 4 years ago

bit69tream commented 4 years ago

That happens when I try to press ESC

I need to press Ctrl+H instead of backspace to delete last character It will be good if nchat supports different backspace key codes

d99kris commented 4 years ago

Hi @bit9tream - nchat does support configurable key bindings, so it should be possible to configure it to use for example Ctrl+H instead of backspace. Can you try edit your ~/.nchat/uidefault.conf and change the key_backspace line to:

key_backspace=KEY_CTRLH

I tested it on my Linux system and it seems to work. Please let me know if it solves your problem.

bit69tream commented 4 years ago

Thanks Now all works fine