9fans archive / 1997 / 11 / 18 / prev next
From: forsyth@cal... forsyth@cal...
Subject: [9fans] Novice use of libg
Date: Thu, 20 Nov 1997 23:17:31 GMT
>> if ((Estdin = estart((ulong)0, 0, 8192)) == 0)
>> panic("Estdin = estart(0, 0, 8192) fails");
>> einit(Emouse | Estdin);
einit must be called before estart (it initialises the state for
the other event routines).
on Plan 9, you can use
fprint(2, ...);
to print directly to a file descriptor, instead of
fprintf(stderr, ...
avoiding an old library and the possible need to fflush.