Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!hico2!sonyd1.Broadcast.Sony.COM!blilly.UUCP!bruce From: bruce@balilly (Bruce Lilly) Newsgroups: comp.sys.3b1 Subject: Re: Curses is broken. Don't believe it? Try this... Message-ID: <1991Apr3.015558.2779@blilly.UUCP> Date: 3 Apr 91 01:55:58 GMT References: <1991Apr1.231435.3609@shibaya.lonestar.org> Sender: usenet@blilly.UUCP (News Administrator) Organization: Bruce Lilly, Flushing, NY Lines: 70 Nntp-Posting-Host: balilly In article <1991Apr1.231435.3609@shibaya.lonestar.org> afc@shibaya.lonestar.org (Augustine Cano) writes: > >attrset (A_STANDOUT); /* Doesn't work: displayed in REVERSE */ >attrset (A_BLINK); /* Doesn't work: displayed in REVERSE */ >attrset (A_BOLD); /* Doesn't work: displayed in REVERSE */ > >/************************************************************************/ > >I don't know how STANDOUT should appear, but BOLD is significant because >it works correctly in the non-curses program below: > >/************************************************************************/ > >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); > >printf("\n%c[%dm%s%c[0m\n",27,3,"NOTHING HAPPENS",27); >printf("\n%c[%dm%s%c[0m\n",27,5,"NOTHING HAPPENS",27); >printf("\n%c[%dm%s%c[0m\n",27,6,"NOTHING HAPPENS",27); >printf("\n%c[%dm%s%c[0m\n",27,9,"CROSSED OUT",27); > >/************************************************************************/ > >I could believe that it is impossible to do blinking in the unix pc, but >is there a way to display text in STANDOUT and BOLD attributes using >curses? > >BTW, this is 3.51m with 3.51 Foundation set and 3.51 Develpment set. Check your terminfo settings: 7300|s4|S4|unixpc|pc7300|PC7300|unix_pc|AT&T UNIX PC Model 7300, am, km, cols#80, lh#2, lines#24, lw#8, nlab#8, pb#9600, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=1C, clear=\E[2J\E[H, cr=\r, cub=\E[%p1%dD, cub1=\b, cud=\E[%p1%dB$<5*/>, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%2.2d;%p2%3.3dH$<6*/>, cuu=\E[%p1%dA$<5*/>, cuu1=\E[A, cvvis=\E[=0C, dim=\E[2m, dl=\E[%p1%dM$<5*/>, dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H, il=\E[%p1%dL$<5*/>, il1=\E[L, ind=\n, invis=\E[9m, kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK, kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH, kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kbs=\b, kcan=\EOw, kcbt=\E[Z, kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi, kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb, kres=\EOq, krfr=\ENa, kri=\E[T, krpl=\EOy, krst=\EOB, ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, nel=\EE, prot=\E[9m, rev=\E[7m, ri=\EM, rmacs=\E[10m, rmam=\E[0w, rmso=\E[0m$<4*/>, rmul=\E[0m, sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;$<7*/>, sgr0=\E[0;10m$<4*/>, smacs=\E[11m, smam=\E[=1w, smso=\E[1;7m$<4*/>, smul=\E[4m, Note especially the sgr string, as well as the individual bold, smso, etc. -- Bruce Lilly blilly!balilly!bruce@sonyd1.Broadcast.Sony.COM