[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Converting extended terminof capabilites to keycode
From: |
Thomas Beierlein |
Subject: |
Converting extended terminof capabilites to keycode |
Date: |
Sun, 24 Jan 2016 09:45:51 +0100 |
Hi all,
I am looking for a portable way to determine the key code for an
extended capability entry in the terminfo base. I am especially
interested in a lookup for CTRL/Alt-PgUp/PgDn combinations (kNXT5/kNXT3
and kPRV5/kPRV3).
What I found so far is to lookup the key ESC-sequence by e.g.
char *name = tigetstr("kNXT3");
and later check with
int code = key_defined(name);
if the sequence is defined and getting the associated key code as an
side effect.
I would like to know if there is a more direct way to ask for the key
code associated with the capability name. Any help is welcome.
Thanks in advance,
Thomas.
--
"Do what is needful!"
Ursula LeGuin: Earthsea
--
- Converting extended terminof capabilites to keycode,
Thomas Beierlein <=