cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from pkgsrc 3c1118e94432. Added with -f: CDE's .gitignore hides 612 files of the archive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
282 B
Plaintext
15 lines
282 B
Plaintext
typeset -A Keytable
|
|
trap 'eval "${Keytable[${.sh.edchar}]}"' KEYBD
|
|
function keybind # key action
|
|
{
|
|
typeset key=$(print -f "%q" "$2")
|
|
case $# in
|
|
2) Keytable[$1]='.sh.edchar=${.sh.edmode}'"$key"
|
|
;;
|
|
1) unset Keytable[$1]
|
|
;;
|
|
*) print -u2 "Usage: $0 key [action]"
|
|
;;
|
|
esac
|
|
}
|