tests/interactive-ascii: update cooked.c
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 8 Apr 2023 02:51:31 +0000 (02:51 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 8 Apr 2023 02:51:31 +0000 (02:51 +0000)
tests/interactive-ascii/cooked.c

index 3d64c44..0c70098 100644 (file)
@@ -58,9 +58,18 @@ main(void)
        (void)scrollok(stdscr, TRUE);
        (void)leaveok(w, FALSE);
        (void)intrflush(w, TRUE);
+
+       /* Enable hardware features if available */
+       if (has_ic())
+               idcok(w, TRUE);
+       if (has_il())
+               idlok(w, TRUE);
+
+       /* Position cursor where wanted */
        (void)move(10, 10);
        (void)refresh(); /* doupdate() does not update cursor pos */
 
+       /* Basically simulate cat(1) */
        for (;;) {
                char str[1024];