Path: utzoo!utgpu!water!watmath!clyde!att!ihopa!ihnp4!pegasus!hansen From: hansen@pegasus.UUCP (Tony L. Hansen) Newsgroups: comp.unix.questions Subject: Re: Curses: Drawing Boxes -- sending control chars Summary: border()/wborder() are in System V r3.1 Keywords: curses, box, border, corners Message-ID: <3206@pegasus.UUCP> Date: 28 Sep 88 16:31:14 GMT References: <873@wpg.UUCP> <384@marob.MASA.COM> <806@riddle.UUCP> <126@cetia.UUCP> Reply-To: hansen@pegasus.UUCP (XT1554000-Tony L. Hansen;LZ 3B-315;3207) Organization: AT&T-IS Labs, Lincroft, NJ Lines: 19 < There is only one problem with this new alternate character stuff: the < semi-graphics '|' and '-' will be used only if you draw your box with '|' < and '-' (or NULLS) but the corners will always be done using the < semi-graphics, even if you try to erase the box using spaces (box(win, < ' ', ' ')). It was for this reason that the border() and wborder() functions were added to the curses library in System V release 3.1. These functions allow you to specify the characters to be used for all four sides and all four corners. Here is the function prototype for wborder(). (border() just calls wborder() with stdscr.) wborder(WINDOW *win, chtype leftside, chtype rightside, chtype topside, chtype bottomside, chtype topleft, chtype topright, chtype bottomleft, chtype bottomright) Tony Hansen att!pegasus!hansen, attmail!tony