I'm working with a device console that maps Control+H to delete a character, but would like to preserve my normal workflow of using the Delete key.

Is there a configuration I can add to my ~/.screenrc configuration file to accomplish this?



This does not work

bind Del stuff ^H

This correctly converts a typed foo to a barfoo

bindkey -t foo stuff barfoo

This correctly deletes a character.

bindkey -t foo stuff ^H

But I'm unable to find the syntax for what represents the Delete key.


You should be able to provide the octal code for delete:

bindkey "\177" stuff ^H

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.