#: 4961 S3/Languages
07-Jul-90 18:36:49
Sb: #4941-#I don't C so well !
Fm: Zack Sessions 76407,1524
To: TONY CAPPELLINI 76370,2104 (X)
As Pete mentioned, if you try to open a path to a device which is not
ready, the error code returned is 246 (E$NotRdy). If you use the C
Systemhfunction open(), it will simply return -1 on any open error.
Without seeing more of your code, it hard to tell. I tested the following
code segment on my system and it functions as expected, ie, clears the
second line of the display.
#include
main()
{
putchar(0x0c);
puts("This data is on Line 1");
puts("This data is on Line 2");
puts("This data is on Line 3");
tsleep(120);
putchar(0x02);
putchar(0x20);
putchar(0x21);
putchar(0x04);
fflush(stdout);
tsleep(120);
putchar(0x02);
putchar(0x20);
putchar(0x2a);
puts("Just one more line!");
}
Oh, and $0B is not just for graphics screens.
Zack
There is 1 Reply.
|