diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-01-05 20:01:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-01-05 20:01:24 +0000 |
commit | 9b923cccea05b93eeade4a69694985880d5affa2 (patch) | |
tree | 5c84bd3790c4b8e36e44fc96c5b2efc007410b40 /Src/init.c | |
parent | 432112c4256bf7e33776fa1ad57e148b5864e303 (diff) | |
download | zsh-9b923cccea05b93eeade4a69694985880d5affa2.tar.gz zsh-9b923cccea05b93eeade4a69694985880d5affa2.tar.xz zsh-9b923cccea05b93eeade4a69694985880d5affa2.zip |
30084: `zle -T tc func' for zle testing of termcap output
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Src/init.c b/Src/init.c index 29191410e..9820070fb 100644 --- a/Src/init.c +++ b/Src/init.c @@ -558,6 +558,19 @@ static char *tccapnams[TC_COUNT] = { "ku", "kd", "kl", "kr", "sc", "rc", "bc", "AF", "AB" }; +/**/ +mod_export char * +tccap_get_name(int cap) +{ + if (cap >= TC_COUNT) { +#ifdef DEBUG + dputs("name of invalid capability %d requested", cap); +#endif + return ""; + } + return tccapnams[cap]; +} + /* Initialise termcap */ /**/ |