Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!math.fu-berlin.de!opal!unido!horga!attron!chris From: chris@attron.ruhr.sub.org (Christian Schlichtherle) Newsgroups: comp.sources.games.bugs Subject: Missing functions in mdg program Keywords: mdg Message-ID: <551@attron.ruhr.sub.org> Date: 26 Feb 91 16:54:18 GMT Organization: Fa. Schlichtherle Industriebedarf, 5802 Wetter, FRG Lines: 54 Hmm... Im running SCO Xenix/286 2.2.1 and had a little problem compiling mdg. My library misses the following functions: tigetstr() curs_set() I guess these functions are non-standard, are they? They are used in gmain.c: gmain.c: curs_set(0); gmain.c: tputs(tigetstr("clear"), 1, eputc); gmain.c: tputs(tigetstr("clear"), 1, eputc); I assumed curs_set(0) is used to home the cursor and tigetstr is the same as tgetstr() but without an area pointer (the second argument to tgetstr). So I coded two short functions to emulate these: char *tigetstr(id) char *id; { static char buf[20]; char *ptr = buf; tgetstr(id, &ptr); *ptr = '\0'; return buf; } void curs_set(dummy) int dummy; { int eputc(); tputs(tgoto(tigetstr("cup"), 0, 0), 1, eputc); } Hope this works! Currently "mdg" and "mdg_daemon" keep dying with: Connecting, please wait... sh: 872 Memory fault you are unknown. What the hell is the reason for this? Chris -- Snail: Christian Schlichtherle, Elbscheweg 20, 5802 Wetter 4, Germany Email: chris@attron.ruhr.sub.org Tel.: +49 2335 7550 "Der Tod ist ein Meister aus Deutschland" -- Paul Celan