[go: up one dir, main page]

Menu

[r653]: / examples / conio.c  Maximize  Restore  History

Download this file

24 lines (18 with data), 420 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma target coco
#include <conio.h>
#include <stdlib.h>
int main(void)
{
// clrscr();
system("WIDTH40");
for (;;) {
cputs("WELCOME TO...\n THE COLOR COMPUTER\n\n");
cputs("OUTPUT WITH A NEW LINE INPUT\n");
cputs("PRESS SHIFT+LEFT TO MOVE CURSOR BACK\n");
char s[100];
s[0] = 31;
cgets(s);
cputc('\n');
}
return -1;
}