[go: up one dir, main page]

Menu

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

Download this file

34 lines (25 with data), 593 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <conio.h>
#include <stdlib.h>
#include <system.h>
#include <memory.h>
#include <coco/coco3.h>
#include <coco/super.h>
//#pragma options -machine=cocous
int main(void)
{
system("WIDTH40");
textcolor(3);
bgcolor(7);
bordercolor(0x88);
clrscr();
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] = 80;
cgets(s);
cputc('\n');
}
return 0;
}