curses.h implementation of the Glk API