Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!sco!staceyc From: staceyc@sco.COM (Stacey Campbell) Newsgroups: comp.unix.xenix Subject: Re: Curses, Graphic Characters Message-ID: <2929@scorn.sco.COM> Date: 4 Mar 90 21:22:13 GMT References: <41104@jplgodo.UUCP> <19818@dartvax.Dartmouth.EDU> Sender: news@sco.COM Reply-To: staceyc@sco.COM (Stacey Campbell) Distribution: na Organization: The Santa Cruz Operation, Inc. Lines: 41 In article <19818@dartvax.Dartmouth.EDU> andyb@coat.com writes: >In article <41104@jplgodo.UUCP> deutsch@jplgodo.UUCP (Michael Deutsch) writes: >> ACS_VLINE - Vertical (border) graphic character >> ACS_HLINE - Horizontal (border) graphic character >> These are not available, as far as I can tell, in XENIX include >> files. Check in /usr/include/tinfo.h. Include and make sure M_TERMINFO is defined. >Neither of the two methods that you listed for describing graphics >(line-drawing) characters is standard. >The solution I'd suggest is to use the acsc (:ac) attribute. The acsc entry is one of the low level terminfo entries necessary to draw graphics characters. Others are sgr, sgr0, smacs and rmacs. The ACS macros _are_ the standard and recommended way of accessing alternate character sets for System 5.3 based curses(3). E.g. #include int main() { initscr(); mvwaddch(stdscr, 0, 0, ACS_ULCORNER); mvwaddch(stdscr, 12, 40, ACS_PLUS); wrefresh(stdscr); endwin(); return 0; } SCO Unix ships with color support in curses as well. Send e-mail if you want source to a demo yahtzee game using color window attributes. -- Stacey Campbell _--_|\ {uunet,ucscc,decwrl,att,microsoft,wyse}!sco!staceyc / \ staceyc@sco.com \_.--._/ v