ega_allocattr
static int ega_allocattr(void *, int, int, int, long *);
res = ega_allocattr(scr, 0, 0, 0, attrp);