We have an application that runs over sco and uses curses to colour in the
screen and draw pretty boxes. I am currently trying to get a linux console
to work with it and have created a linux console source file using infocmp
which I have tic'ed onto the sco server. I now seem to have it half
working solution as most of the key-mappings are correct.
The problem I have is that the graphics and the collours currently do not
work, and i don't know where to start. Could anyone point me in the right
direction as to the cause and possible solutions?
Thanks Jeremy
Does your application even use terminfo?
you have updated the terminfo database, but there is also termcap, and a lot
of apps, especially older ones and especially ones developed for sco or for
multiple unixes use termcap instead of terminfo.
here is what I installed on my sco box to allow me to work from my linux
box.
it is still a work in progess, since I don't telnet from linux to sco that
often, but it's pretty good.
http://www.aljex.com/bkw/sco/terminfo-lnx-on-sco
http://www.aljex.com/bkw/sco/termcap-lnx-on-sco
http://www.aljex.com/bkw/sco/profile-lnx-on-sco
copy these to the sco box and run the following commands:
tic terminfo-lnx-on-sco
cat termcap-lnx-on-sco >>/etc/termcap
cat profile-lnx-on-sco >>/etc/profile
exit and log back in to see the effects.
conversely, here are the equivalent snippets that I install on linux boxes
so I can telnet to them from sco boxes. This I do more often. (from scoansi
terminal emulators like facetwin actually)
http://www.aljex.com/bkw/sco/terminfo-sco-on-lnx
http://www.aljex.com/bkw/sco/termcap-sco-on-lnx
http://www.aljex.com/bkw/sco/profile-sco-on-lnx
Final note about termcap, many apps that use termcap actually use their own
special termcap file that comes with the app and resides somewhere in the
apps directory tree. If your app is one such, you will have to find that
termcap file and add a "linux" entry to it similar to the one above for the
system-wide termcap file /etc/termcap. the format is the same, but usually
the apps private termcap file has some extra fields that are probably only
recognized by that app, and possibly not documented anywhere. I am familiar
with Basis BBx and fptech's filePro, both of which do document their termcap
extensions. Usually they can be deduced if there is no documentation, but
it's a kind of tedious process.
--
Brian K. White -- br...@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
> here is what I installed on my sco box to allow me to work from my linux
> box.
> it is still a work in progess, since I don't telnet from linux to sco that
> often, but it's pretty good.
> http://www.aljex.com/bkw/sco/terminfo-lnx-on-sco
mc4 and mc5 aren't recognized by Linux console.
> http://www.aljex.com/bkw/sco/termcap-lnx-on-sco
the color stuff (setf/setb/setaf/setab) is incorrect since it is in terminfo
format rather than termcap (perhaps SCO's "termcap" is really terminfo?)
--
Thomas E. Dickey <dic...@radix.net> <dic...@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com
They are recognized by many a telnet client in "linux" emulation mode. I use
it every day telnetting to linux boxes. hmm, though you may have a point...
if you are
telnetting to a sco box from a terminal emulator, you have no great need to
use a linux emulation to do so, in which case... maybe there is no real need
for these to exist in the linux entry on a sco box, IF what you say is
actually true. I suppose I'll test it someday... But, because of the
telnet/ssh clients, it is definetly worth adding to linux systems. (it's not
there by default in terminfo in linux, though I have seen it in-place in
termcap in the form of tc=ansi-pp, which didn't use PN/PS though it used
pn,po,pf
> > http://www.aljex.com/bkw/sco/termcap-lnx-on-sco
>
> the color stuff (setf/setb/setaf/setab) is incorrect since it is in
terminfo
> format rather than termcap (perhaps SCO's "termcap" is really terminfo?)
I beleive that is a comment, not an active part of the entry. I vaguely
recall reading something to thart effect in the comments before the entry
sometime in the last couple years.
It is in any case, a straight copy of the actual scoansi termcap entry from
a sco 5.0.4 box, to which I have merely added PN and PS, and is in fact
working as expected this minute on several linux boxes of mine. If it is a
comment I guess I should remove it. needless clutter...
>> mc4 and mc5 aren't recognized by Linux console.
> They are recognized by many a telnet client in "linux" emulation mode. I use
> it every day telnetting to linux boxes. hmm, though you may have a point...
> if you are
> telnetting to a sco box from a terminal emulator, you have no great need to
> use a linux emulation to do so, in which case... maybe there is no real need
> for these to exist in the linux entry on a sco box, IF what you say is
> actually true. I suppose I'll test it someday... But, because of the
I'm sure (I read the console-driver code to check).
> telnet/ssh clients, it is definetly worth adding to linux systems. (it's not
> there by default in terminfo in linux, though I have seen it in-place in
> termcap in the form of tc=ansi-pp, which didn't use PN/PS though it used
> pn,po,pf
there's a number of variations on /etc/termcap on Linux (some of them are
incorrect).
>> > http://www.aljex.com/bkw/sco/termcap-lnx-on-sco
>>
>> the color stuff (setf/setb/setaf/setab) is incorrect since it is in
> terminfo
>> format rather than termcap (perhaps SCO's "termcap" is really terminfo?)
> I beleive that is a comment, not an active part of the entry. I vaguely
> recall reading something to thart effect in the comments before the entry
> sometime in the last couple years.
> It is in any case, a straight copy of the actual scoansi termcap entry from
> a sco 5.0.4 box, to which I have merely added PN and PS, and is in fact
> working as expected this minute on several linux boxes of mine. If it is a
> comment I guess I should remove it. needless clutter...
a termcap with terminfo syntax works on linux because you're probably using
ncurses - which is terminfo-based.