term_* and TERM=qansi

Hello:

I am maintaining some software which was written in C using the “term_”
functions to control a TERM=qnx display. When the terminal type is QNX, then
the display and keyboard are interpreted correctly. If I change the terminal
type to ANSI, however, all the formatting is wrong and it doesn’t interpret
the arrow and function keys properly. In order to get these utilities to
work with ANSI terminals, what has to change (besides the “TERM=qansi”
environment variable)? Or is term_* incompatible with ANSI terminals?

P.S. I tried to find some information on the term_* functions but there is
no documentation on the QNX web site or manuals about them. I should
probably rewrite everything to use ncurses but I don’t have the time so I
would really like to use the term_* functions as is. If there is absolutely
no way to make ANSI terminals work with the term_* functions then I guess I
will have to rewrite all my utilities using ncurses.

Lloyd Elwood, P. Eng.

i do this quite a bit… if you know your terminal you could look at the
terminfo.src file to see why your terminal doesn’t respond right.

if you try telnet from Windows and use vt100 does it work for you? that
is always a good test.

in fact, i’m writing this note using a telnet with vt100 to a qnx4 box
and using vi to edit.

export TERM=vt100
stty load
tin

Lloyd Elwood <LloydE@harding.ca> wrote:

Hello:

I am maintaining some software which was written in C using the “term_”
functions to control a TERM=qnx display. When the terminal type is QNX, then
the display and keyboard are interpreted correctly. If I change the terminal
type to ANSI, however, all the formatting is wrong and it doesn’t interpret
the arrow and function keys properly. In order to get these utilities to
work with ANSI terminals, what has to change (besides the “TERM=qansi”
environment variable)? Or is term_* incompatible with ANSI terminals?

P.S. I tried to find some information on the term_* functions but there is
no documentation on the QNX web site or manuals about them. I should
probably rewrite everything to use ncurses but I don’t have the time so I
would really like to use the term_* functions as is. If there is absolutely
no way to make ANSI terminals work with the term_* functions then I guess I
will have to rewrite all my utilities using ncurses.

Lloyd Elwood, P. Eng.


Randy Martin randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579

We are actually use VT100 and VT220, on a QNX 4 with a telnet session and on
the QNX console.

We take the terminfo from a SCO-UNIX and dump it into QNX with the tic
utility, and it’s work fine.


“Randy Martin” <randy@qnx.com> a écrit dans le message news:
9iiean$6j5$1@nntp.qnx.com

i do this quite a bit… if you know your terminal you could look at the
terminfo.src file to see why your terminal doesn’t respond right.

if you try telnet from Windows and use vt100 does it work for you? that
is always a good test.

in fact, i’m writing this note using a telnet with vt100 to a qnx4 box
and using vi to edit.

export TERM=vt100
stty load
tin

Lloyd Elwood <> LloydE@harding.ca> > wrote:
Hello:

I am maintaining some software which was written in C using the “term_”
functions to control a TERM=qnx display. When the terminal type is QNX,
then
the display and keyboard are interpreted correctly. If I change the
terminal
type to ANSI, however, all the formatting is wrong and it doesn’t
interpret
the arrow and function keys properly. In order to get these utilities to
work with ANSI terminals, what has to change (besides the “TERM=qansi”
environment variable)? Or is term_* incompatible with ANSI terminals?

P.S. I tried to find some information on the term_* functions but there
is
no documentation on the QNX web site or manuals about them. I should
probably rewrite everything to use ncurses but I don’t have the time so
I
would really like to use the term_* functions as is. If there is
absolutely
no way to make ANSI terminals work with the term_* functions then I
guess I
will have to rewrite all my utilities using ncurses.

Lloyd Elwood, P. Eng.


\

Randy Martin > randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems > www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579