RT Parameter Display under QNX

Hello. I am migrating from DOS environment to QNX. I am a bit intimidated by
the intricacies of Photon. I want to put up a screen with 20 labels, each
followed with a text field that is dynamically updated with changing
parameter data. Any hints or clues on how to approach this? I am used to a
‘gotoxy’ type call to position and then a call to throw some text down. How
do I do the equivalent under qnx? Do I need to use photon for this?

Thanks in advance for any help you can offer.

Ed

Previously, Ed Clark wrote in qdn.public.qnxrtp.newuser:

Hello. I am migrating from DOS environment to QNX. I am a bit intimidated by
the intricacies of Photon. I want to put up a screen with 20 labels, each
followed with a text field that is dynamically updated with changing
parameter data. Any hints or clues on how to approach this? I am used to a
‘gotoxy’ type call to position and then a call to throw some text down. How
do I do the equivalent under qnx? Do I need to use photon for this?

There are a number of approaches to this depending on your needs.

One way to set this up would be to compose the look of the window
in PhAB. This is probably the easiest. Do you have to move
the widgets around? If so, instead of using gotoxy and putting
text down, you move the text widget around by changing its position
property.

Note, from your description it isn’t clear that you really need
text widgets at all. If you just want text on the screen, but
the user will not update it, label widgets will work just as
well.

I should note that it is possible to treat a Photon Window as a
graphics canvas that you will just dump text on. While this is
a lower level of access, it will probably be more complicated.

Mitchell Schoenbrun --------- maschoen@pobox.com

If you don’t want/need graphics then you don’t need to use Photon at all.
For example, you can just use the “ncurses” package in text (console) mode.

See
http://invisible-island.net/ncurses/man/ncurses.3x.html and
http://dickey.his.com/ncurses/ncurses.faq.html

PS For QSSL comment: The documentation used to be present in QNX4 but seems
to be missing from QNX6 - although the header files and libraries are still
there. Is this deliberate? Is ncurses deprecated in QNX6?

Rob Rutherford

“Ed Clark” <edclark1@mindspring.com> wrote in message
news:a041tb$jbb$1@inn.qnx.com

Hello. I am migrating from DOS environment to QNX. I am a bit intimidated
by
the intricacies of Photon. I want to put up a screen with 20 labels, each
followed with a text field that is dynamically updated with changing
parameter data. Any hints or clues on how to approach this? I am used to a
‘gotoxy’ type call to position and then a call to throw some text down.
How
do I do the equivalent under qnx? Do I need to use photon for this?

Thanks in advance for any help you can offer.

Ed

Robert,
Thanks … I’ve tried a few ncurses calls (libncurses.a) and now know
how to proceed with that. It turns out I was able to dig up some unix code
that somebody else in my company wrote, that used some of these curses calls
so I was able to get some clues to get going. Didn’t know what ‘curses’ was
until you gave me that hint. I may try a photon call or two now for
comparison.

Ed


“Robert Rutherford” <ruzz@NoSpamPlease.ruzz.com> wrote in message
news:a05t2d$qov$1@inn.qnx.com

If you don’t want/need graphics then you don’t need to use Photon at all.
For example, you can just use the “ncurses” package in text (console)
mode.

See
http://invisible-island.net/ncurses/man/ncurses.3x.html > and
http://dickey.his.com/ncurses/ncurses.faq.html

PS For QSSL comment: The documentation used to be present in QNX4 but
seems
to be missing from QNX6 - although the header files and libraries are
still
there. Is this deliberate? Is ncurses deprecated in QNX6?

Rob Rutherford

“Ed Clark” <> edclark1@mindspring.com> > wrote in message
news:a041tb$jbb$> 1@inn.qnx.com> …
Hello. I am migrating from DOS environment to QNX. I am a bit
intimidated
by
the intricacies of Photon. I want to put up a screen with 20 labels,
each
followed with a text field that is dynamically updated with changing
parameter data. Any hints or clues on how to approach this? I am used to
a
‘gotoxy’ type call to position and then a call to throw some text down.
How
do I do the equivalent under qnx? Do I need to use photon for this?

Thanks in advance for any help you can offer.

Ed

\