#include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
#include <config.h>
#include "glk.h"
+#include "input.h"
/* Version of the Glk specification implemented by this library */
#define MAJOR_VERSION 0
case gestalt_DrawImage:
return val == wintype_Graphics || val == wintype_TextBuffer;
+ /* Which keycodes can be used as line terminators */
+ case gestalt_LineTerminatorKey:
+ return is_valid_line_terminator(val)? 1 : 0;
+
/* Capabilities that are simply supported */
case gestalt_Unicode:
case gestalt_Timer:
case gestalt_GraphicsTransparency:
case gestalt_DateTime:
case gestalt_UnicodeNorm:
+ case gestalt_LineInputEcho:
+ case gestalt_LineTerminators:
return 1;
/* Capabilities supported if compiled with GStreamer */
#endif
/* Unsupported capabilities */
- case gestalt_LineInputEcho:
- case gestalt_LineTerminatorKey:
- case gestalt_LineTerminators:
+ /* none! */
+
/* Selector not supported */
default:
return 0;