dos33fsprogs/gr-sim/text.c

44 lines
451 B
C
Raw Normal View History

2017-05-04 18:34:57 +00:00
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "gr-sim.h"
int main(int argc, char **argv) {
int ch,i;
char output[BUFSIZ];
2017-05-04 18:34:57 +00:00
grsim_init();
home();
gr();
2017-05-17 19:47:20 +00:00
text();
basic_htab(10);
basic_vtab(10);
basic_print("HELLO WORLD!\r\r");
for(i=0;i<128;i++) {
sprintf(output,"%c",i);
basic_print(output);
}
2017-05-17 19:47:20 +00:00
2017-05-04 18:34:57 +00:00
while(1) {
grsim_update();
ch=grsim_input();
if (ch=='q') break;
usleep(100000);
}
return 0;
}