1
0
mirror of https://github.com/aap/pdp6.git synced 2026-02-10 10:20:21 +00:00

wrote new gui; implemented and fixed a bunch of stuff

This commit is contained in:
aap
2016-10-24 22:45:24 +02:00
parent e0d9a181e2
commit 2a37a8f74d
49 changed files with 5041 additions and 5384 deletions

View File

@@ -113,17 +113,19 @@ usage(void)
exit(1);
}
int clear;
int port = 6666;
char const *host = "127.0.0.1";
int
main(int argc, char *argv[])
{
int fd;
char const *host;
int port;
host = "127.0.0.1";
port = 6666;
ARGBEGIN{
case 'c':
clear = 1;
break;
case 'p':
port = atoi(EARGF(usage()));
break;
@@ -136,7 +138,9 @@ main(int argc, char *argv[])
fd = opentcp(host, port);
printf("\033[H\033[J"); // clear screen
if(clear)
printf("\033[H\033[J"); // clear screen
fflush(stdout);
if(raw())
return 1;