Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RealWorld Version 8 Terminfo nightmare

60 views
Skip to first unread message

Tom_H...@my-dejanews.com

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to

I just spent some time at a client, trying to get their new Version 8 of
RealWorld to work on their X terminals.

The old Version 6 they had before worked just fine.

However, with Version 8, it no longer uses the RWCONFIG.xxx files; rather, it
uses the `terminfo' database.

Moving from their old RWCONFIG.xtermc file to the new 'ansi' terminfo type had
two major bad effects.

First, Version 8 always displayed everything in BOLD characters. This was
annoying and hard to read for long periods of time. I fixed this by simply
eliminating the `bold=' string from the terminal entry.

Second (the hard part) was this: They need to display the line graphics for
menus and windows as using the `+', `-', and '|' characters, because most of
their xterms can't handle line draw characters. (This worked in Version 6)

However, try as I might, I could not make RealWorld version 8 use these
characters. In their terminfo, I constructed a special `ansirwc' terminal
type, and for the 'acsc=' entry, I placed the `+', '-' and '|' characters in
the right spots. (I also disabled the sequences for starting and ending
graphics character mode.) The thing still insisted upon spitting out
graphics characters, which looks like s**t on most of their xterms. How it
now knew HOW to do this is beyond me, since all information about how to
generate graphics characters was no longer in the terminfo entry.

HOWEVER, I discovered a couple of things which indicated that PERHAPS
RealWorld isn't getting all its information strictly from `terminfo'.

1. At the main menu, I arrowed all the way over to the left-most drop-down
menu, which I believe was `AR'. I then pressed Escape, which caused the
little "Press <Esc> to EXIT" prompt to appear. This prompt partially covered
up the lower left corner of the drop-down menu. THEN, I pressed 'Enter',
which caused the prompt to go away. LO AND BEHOLD, the part of the menu that
was under the prompt was repainted, but WITH '+', '-' and '|'
characters!!!!!!

2. At the top of the menu, the active menu heading (e.g., 'AR', 'P/O', etc.)
was surrounded by vertical bars, whereas with the standard `ansi' terminal
type, it was a graphics vertical line character.

SO WHAT GIVES??? Any ideas out there???

Thanks.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Michael Spicyn

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to

How character based are handled in xterm depends on ... X-ansi emulator used.
Every version of SCO has implemented different emulator.

In addition programmers at RWC are using undocumented escape sequences to
produce graphics and colors! If my memory does not fail me they combine escape
sequences and such combined sequence is not understood by emulators.

Talking to RWC support about what they do and how they do it was useless (2
yesrs ago) - maybe today it is improved

Good luck

D. Thomas Podnar

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to
As near as I can tell, the RealWorld 8 copyright notices initially begin
by issuing hard-coded 8 bit line draw characters from the PC character set.

Of course, if you launch xterm with a PC character set it messes up your
acsc graphics characters.

The following is a terminfo file munged to work with an xterm that
has been launched with an ibm font, for instance:

xterm -fnibm8x14 -fg black -bg white

Someone else can probably tell you how to make that the default
character set if necessary.

1) Place the following in the file /tmp/rwxterm.ti
2) TERMINFO={RealWorldPath}/terminfo export TERMINFO
3) tic -v /tmp/rwxterm.ti
4) unset TERMINFO

-- cut here - /tmp/rwxterm.ti --
# Microlite ReqlWord 8 terminfo file - needs ibm font
# example: xterm -fn ibm8x14 -fg black -fg white
xterm|xterm terminal emulator - rw8 - ibm font,
am, km, mir, msgr, xenl, xon,
cols#80, lines#24,
acsc=k\277l\332m\300j\331n\305w\302q\304u\264t\303v\301x\263,
bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
ed=\E[J, el=\E[K, home=\E[H, ht=\t, hts=\EH,
ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
ind=\n, is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
kLFT=\E[d, kRIT=\E[c, kbs=\b, kcbt=\E[Z, kcub1=\E[D,
kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[7~,
kf1=\E[11~, kf10=\E[21~, kf11=\E[25~, kf12=\E[26~,
kf13=\E[28~, kf14=\E[29~, kf15=\E[31~, kf16=\E[32~,
kf17=\E[33~, kf18=\E[34~, kf2=\E[12~, kf3=\E[13~,
kf4=\E[14~, kf5=\E[15~, kf53=\E[5~, kf54=\E[6~,
kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
khome=\E[8~, kich1=\E[2~, rc=\E8, rev=\E[7m, ri=\EM,
rmcup=\E[2J\E[?47l\E8, rmso=\E[m, rmul=\E[m,
rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
sgr0=\E[m, smcup=\E7\E[?47h, smso=\E[7m, smul=\E[4m,
tbc=\E[3g,
-- cut here - /tmp/rwxterm.ti --

Note. The key definitions are based on xterm being launched on an
SCO OpenServer 5 system. They cover unshifted and shifted, but
not control-shifted characters, since they are not defined in xterms.

Tom
---
D. Thomas Podnar - President t...@microlite.com Email
Microlite Corporation 724-375-6711 Voice
2315 Mill Street 724-375-6908 Fax
Aliquippa PA 15001-2228 888-257-3343 Toll Free Sales
+-------------------------------------------------------------------+
| Makers of Microlite BackupEDGE - Data Archiving Software For Unix |
| http://www.microlite.com ftp://ftp.microlite.com |
+-------------------------------------------------------------------+


: I just spent some time at a client, trying to get their new Version 8 of

0 new messages