On Wed, Jan 19, 2000 at 08:56:42PM +1300, Carey Evans wrote:
> "Jason M. Felice" <[EMAIL PROTECTED]> writes:
> 
> [...]
> 
> > Would this pseudo-code be the "correct" implementation?
> 
> That's not really how I understand it to work.  I'd make it more like:
> 
>   get cursor position
>   get home position
>   if cursor is at home position:
>       send keypress to host
>   else:
>       move cursor to home position
> 
> which seems to be more like just the part in the spec.
> 
> "Return to start of field" is done by Back-Tab.

Okay, that's what I've done.  I was just confused because it seems to
behave differently in a few places, but I think I figured out how the
400 can manipulate IC to produce those results.

Changes are in CVS.  A partial experimental rewrite of keyboard handling with
curses is in CVS as well, although you will have to enable it manually for
now if you'd like to test it.  Put this at the top of cursesterm.c:

#define USE_OWN_KEY_PARSING

It handles most keys, and all the vt100 function key escape sequencs, but 
no other ESC sequences (e.g. ESC A for ATTN).  The rest will be shortly
forthcoming.  It responds better and doesn't need to wait for the next key
before processing ESC 1, etc.

Some other minor bugs were fixed.  I forget which :)

> -- 
>        Carey Evans  http://home.clear.net.nz/pages/c.evans/
> 
>        This message was composed from the finest electrons
>        used by many of the world's greatest writers.

-Jay 'Eraserhead' Felice
+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---

Reply via email to