TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: TONY CAPPELLINI 76370,2104 (X)
from: Zack Sessions 76407,1524
date: 1990-07-07 18:36:49
subject: #4941-#I don`t C so well !

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.