+ while(*str) {
+ int c = *str++;
+
+ if(c > ' ' && c < 128) {
+ cs_font(fb, x, y, c - ' ');
+ }
+ x += 9;
+ }
+}
+
+static void change_screen(int idx)
+{
+ printf("change screen %d\n", idx);
+ scr_change(scr_screen(idx), 4000);
+}
+
+#define CBUF_SIZE 64
+#define CBUF_MASK (CBUF_SIZE - 1)
+void demo_keyboard(int key, int press)
+{
+ static char cbuf[CBUF_SIZE];
+ static int rd, wr;
+ char inp[CBUF_SIZE + 1], *dptr;
+ int i, nscr;
+
+ if(press) {