$TERM --> xterm
IOST --> C-VT100

A mismatch.  What do think I should do to get this
working?

Thanks
Kevin


--- Gregory Woodhouse
<[EMAIL PROTECTED]> wrote:

> If XGFDEMO doesn't work, there's probably an issue
> with your terminal  
> type settings. The XGF library is basically the
> Kernel equivalent of  
> the curses (or ncurses) library. It can be used, for
> example to  
> develop Screenman or Listman like interfacees "from
> scratch".
> 
> Anyway, what is your terminal type (try echo $TERM)
> and what is your  
> terminal type setting in VistA (look at IOST)?
> ===
> Gregory Woodhouse
> [EMAIL PROTECTED]
> 
> "A practical man is a man who practices the errors
> of his  
> forefathers. -- Benjamin Disraeli
> 
> 
> 
> On Jun 25, 2005, at 9:04 PM, Kevin Toppenberg wrote:
> 
> > Greg,
> >
> > Are you sure on this one?  I think that the
> purpose of
> > the ^XGF library is to convert an up arrow escape
> > sequence into "1" character.  At least that is
> what
> > the documentation implies.  Thus I shouldn't have
> to
> > poll...
> >
> > Kevin
> > P.S. the ^XGFDEMO doesn't work on my system, so
> there
> > is something wrong with the implementation on GT.M
> I
> > think.
> >
> > Kevin
> >
> >
> > --- Gregory Woodhouse
> > <[EMAIL PROTECTED]> wrote:
> >
> >
> >> I had a hunch that's what you were after.  You're
> >> making the right
> >> call, but there is no guarantee that the
> character
> >> will be available
> >> in the input stream when you try to read it. If
> >> there is no input to
> >> be read, so instead you need a polling loop.
> >> Something like this:
> >>
> >> S DONE=0
> >> F  D  Q:DONE>0
> >> .S X=$$READ^XGF(1,1)
> >> .;etc.
> >>
> >> The first parameter is the number of characters
> you
> >> want to read, and
> >> the second parameter is a timeout (you can't do
> just
> >> one read).
> >>
> >> In writing loops like this, of course, you have
> to
> >> be careful to
> >> avoid "tight" loops that keep doing the same
> thing
> >> over and over
> >> again without any pause, and you need to be
> prepared
> >> for the
> >> possibility that there will never be an "^" to
> read
> >> (e.g., just stop
> >> after 30 seconds).
> >>
> >> Programming I/O (including terminal I/O) is
> tricky.
> >>
> >> ===
> >> Gregory Woodhouse
> >> [EMAIL PROTECTED]
> >>
> >> "It is a capital mistake to theorize before one
> has
> >> data."
> >> --Sir Arthur Conan Doyle
> >>
> >>
> >>
> >> On Jun 25, 2005, at 4:40 PM, Kevin Toppenberg
> wrote:
> >>
> >>
> >>> This library does not work for me.  I have tried
> >>>
> >> the
> >>
> >>> examples provided in the kernal api, and they
> >>>
> >> don't
> >>
> >>> work as advertised.  Specifically, the variable
> >>>
> >> XGRT
> >>
> >>> doesn't get set to the special keys.  Here is a
> >>>
> >> screen
> >>
> >>> log:
> >>>
> >>> GTM>d INITKB^XGF("*")
> >>>
> >>> GTM>set y=$$READ^XGF(1)
> >>>                         <---- Up arrow entered
> >>>
> >> here
> >>
> >>> GTM>w XGRT
> >>>                 <--- XGRT should = "UP" (it
> >>>
> >> doesn't)
> >>
> >>> GTM>w XGRT=""
> >>> 1
> >>> GTM>w y
> >>>
> >>> GTM>set XGRT="hello"
> >>>
> >>> GTM>w XGRT
> >>> hello
> >>> GTM>s y=$$READ^XGF(1)
> >>>               <---- up arrow entered here
> >>> GTM>w XGRT
> >>>            <--- XGRT is cleared, but not equal
> to
> >>>
> >> "UP"
> >>
> >>> GTM>
> >>>
> >>>
> >>> Kevin
> >>>
> >>>
> >>> --- Gregory Woodhouse
> >>> <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>> Did you call INITKB^XGF?
> >>>>
> >>>>
> >>>> ===
> >>>> Gregory Woodhouse
> >>>> [EMAIL PROTECTED]
> >>>>
> >>>> "The most profound technologies are those that
> >>>> disappear."
> >>>> --Mark Weiser
> >>>>
> >>>>
> >>>>
> >>>> On Jun 25, 2005, at 1:55 PM, Kevin Toppenberg
> >>>>
> >> wrote:
> >>
> >>>>
> >>>>
> >>>>
> >>>>> As part of researching how to read in arrow
> >>>>>
> >> keys,
> >>
> >>>>>
> >>>>>
> >>>> I
> >>>>
> >>>>
> >>>>> have played a bit with the ^XGF kernal
> library.
> >>>>>
> >> I
> >>
> >>>>> can't seem to get it to work correctly.  Does
> it
> >>>>>
> >>>>>
> >>>> work
> >>>>
> >>>>
> 
=== message truncated ===



                
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to