Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!beartrk!ceilidh!dnichols From: dnichols@ceilidh.beartrack.com (DoN Nichols) Newsgroups: comp.sys.3b1 Subject: Re: Curses is broken. Don't believe it? Try this... Message-ID: <1991Apr3.024312.11468@ceilidh.beartrack.com> Date: 3 Apr 91 02:43:12 GMT References: <1991Apr1.231435.3609@shibaya.lonestar.org> Organization: D and D Data, Vienna, VA. Lines: 32 In article <1991Apr1.231435.3609@shibaya.lonestar.org> afc@shibaya.lonestar.org (Augustine Cano) writes: > >Ah! the curses of curses... I've been trying to exorcise character >attributes, but my Cabalistic code is not powerful enough. It is >possible to display at least BOLD characters with a plain C program, >as shown below. [ ... ] > >printf("NORMAL\n"); >printf("\n%c[%dm%s%c[0m\n",27,1,"BOLD IS OK",27); >printf("\n%c[%dm%s%c[0m\n",27,2,"DIM IS OK",27); >printf("\n%c[%dm%s%c[0m\n",27,4,"UNDERLINE IS OK",27); >printf("\n%c[%dm%s%c[0m\n",27,7,"REVERSE IS OK",27); >printf("\n%c[%dm%s%c[0m\n",27,8,"CONCEALED DOESN'T WORK",27); It looks as though the terminfo file for the 3b1 is braindamaged, since the requests through curses don't work, but the explicit character sequences do. Terminfo should return the appropriate sequences to perform the requested functions. Check what they are returning against the sequences in your explicit example above. (I haven't checked these myself, but it could easily be the problem. You might compare them to the termcap info as well.) [ ... ] -- Donald Nichols (DoN.) | Voice (Days): (703) 664-1585 D&D Data | Voice (Eves): (703) 938-4564 Disclaimer: from here - None | Email: --- Black Holes are where God is dividing by zero ---