I've been looking for a way to use Ctrl-L to clear the monitor instead of typing clear in each time. I found nothing except a patch which didn't work for me. How do I add hotkeys/shortcuts to my OpenBSD box (which uses ksh as a shell)?[*] OpenBSD's ksh.kshrc[*] Ctrl-l in hex = 0xc :# read key ; echo -n $key > file.txt ; hexdump file.txt^L0000000 000c                                   0000001# 
Adding Ctrl-L as clear hotkey in OpenBSD's ksh
keyboard shortcuts;openbsd;ksh
According to the OpenBSD ksh man page, Ctrl+L is bound to redraw. redraw: ^L         Reprints the prompt string and the current input line.If that isn't sufficient, I can't see any editing command that will help, so I would suggest learning more about bind -m.Perhaps you can do something like bind -m '^L'=clear'^J' to make it type clear Enter.