12 main (int argc, char *argv[])
14 struct termios raw, old;
19 tcsetattr (0, TCSANOW, &raw);
22 fputs ("\033[H\033[2J", stdout);
24 fputs ("\r\n", stdout);
26 fputs ("\r\n\n", stdout);
30 fputs ("\r\n", stdout);
32 fputs ("\r\n\n", stdout);
35 fputs ("\rb\n", stdout);
37 fputs ("\r\n\n", stdout);
40 fputs ("\nc\n", stdout);
42 fputs ("\r\n\n", stdout);
45 fputs ("\033[Cd", stdout);
46 fputs ("\r\n", stdout);
48 fputs ("\r\n\n", stdout);
52 fputs ("\033[De", stdout);
53 fputs ("\r\n", stdout);
55 fputs ("\r\n\n", stdout);
58 tcsetattr (0, TCSANOW, &old);