1
0
mirror of https://github.com/aap/pdp6.git synced 2026-04-29 13:22:16 +00:00

small changes

This commit is contained in:
aap
2016-10-06 13:36:55 +02:00
parent 2a67b180a8
commit 854437548e
2 changed files with 8 additions and 6 deletions

12
main.c
View File

@@ -731,26 +731,28 @@ main(int argc, char *argv[])
int i;
Light *l;
Switch *sw;
const char *outfile;
// void testinst(Apr*);
// testinst(&apr);
debugfp = stdout;
//dotrace = 1;
outfile = "/dev/null";
ARGBEGIN{
case 't':
dotrace++;
break;
case 'd':
if(debugfp = fopen(EARGF(usage()), "w"), debugfp == nil){
fprintf(stderr, "Can't open debug file\n");
exit(1);
}
outfile = EARGF(usage());
break;
default:
usage();
}ARGEND;
if(debugfp = fopen(outfile, "w"), debugfp == nil){
fprintf(stderr, "Can't open %s\n", outfile);
exit(1);
}
if(SDL_Init(SDL_INIT_VIDEO) < 0){
error:

2
tty.c
View File

@@ -65,7 +65,7 @@ ttythread(void *arg)
printf("TTY attached\n");
tty.fd = newsockfd;
while(n = read(tty.fd, &buf, 1), n > 0){
fprintf(stderr, "(got.%c)", buf);
//fprintf(stderr, "(got.%c)", buf);
tty.tti = buf|0200;
tty.tti_flag = 1;
recalc_tty_req();