+ while(*str) {
+ int c = *str++;
+
+ if(isalpha(c)) {
+ cs_font(fb, x, y, toupper(c) - 'A');
+ }
+ x += 14;
+ }
+}
+
+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) {