about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-11-06 14:14:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-11-06 14:14:16 +0000
commitea15ee886789a31160f5e87ae466adadbb1e5815 (patch)
treea42ff7338e1406ac0e0f2ed3ae500c801a6d17fb /Src
parentb9f3fc7c81dfde1400ebec848a1356116d2e95aa (diff)
downloadzsh-ea15ee886789a31160f5e87ae466adadbb1e5815.tar.gz
zsh-ea15ee886789a31160f5e87ae466adadbb1e5815.tar.xz
zsh-ea15ee886789a31160f5e87ae466adadbb1e5815.zip
24069: add zcurses_keycodes
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/curses.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index c9e4ec134..08fe0099b 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -1210,6 +1210,16 @@ static const struct gsu_array zcurses_attrs_gsu =
 
 
 static char **
+zcurses_keycodesgetfn(UNUSED(Param pm))
+{
+    return zcurses_pairs_to_array(keypad_names);
+}
+
+static const struct gsu_array zcurses_keycodes_gsu =
+{ zcurses_keycodesgetfn, arrsetfn, stdunsetfn };
+
+
+static char **
 zcurses_windowsgetfn(UNUSED(Param pm))
 {
     LinkNode node;
@@ -1254,6 +1264,8 @@ static struct paramdef partab[] = {
 		 &zcurses_colorsarr_gsu, NULL, NULL),
     SPECIALPMDEF("zcurses_attrs", PM_ARRAY|PM_READONLY,
 		 &zcurses_attrs_gsu, NULL, NULL),
+    SPECIALPMDEF("zcurses_keycodes", PM_ARRAY|PM_READONLY,
+		 &zcurses_keycodes_gsu, NULL, NULL),
     SPECIALPMDEF("zcurses_windows", PM_ARRAY|PM_READONLY,
 		 &zcurses_windows_gsu, NULL, NULL),
     SPECIALPMDEF("ZCURSES_COLORS", PM_INTEGER|PM_READONLY,