]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - interactive.h
interactive: Implement single key mode.
[paraslash.git] / interactive.h
index 0af2ef40c27e38950654044ceb0770951ff328ef..fb39860541fef3c09c74b3bff9031c48e7b7a625 100644 (file)
@@ -59,6 +59,10 @@ struct i9e_client_info {
        int loglevel;
        /** Complete input lines are passed to this callback function. */
        int (*line_handler)(char *line);
+       /** In single key mode, this callback is executed instead. */
+       int (*key_handler)(int key);
+       /** The array of valid key sequences for libreadline. */
+       char **bound_keyseqs;
        /** File descriptors to use for input/output/log. */
        int fds[3];
        /** Text of the current prompt. */