4 * Show time in upper right hand corner of the console screen
5 * aeb, 951202, following a suggestion by Miguel de Icaza.
22 unsigned char rc[2]; /* unsigned: Ranty@soon.com */
24 if((fda = open("/dev/vcsa", O_RDONLY)) < 0
25 && (fda = open("/dev/vcsa0", O_RDONLY)) < 0)
27 if(read(fda, rc, 2) != 2)
36 int cols = number_of_columns();
41 if((fd = open("/dev/vcs", O_WRONLY)) < 0
42 && (fd = open("/dev/vcs0", O_WRONLY)) < 0)
46 lseek(fd, cols-10, 0);
49 sprintf(tijd, " %02d:%02d:%02d", t->tm_hour, t->tm_min, t->tm_sec);
51 usleep(500000L); /* or sleep(1); */