Subj : Re: Enter key and quit
To   : Night_Flyer
From : Digital Man
Date : Mon Mar 19 2007 03:34 pm

 Re: Re: Enter key and quit
 By: Night_Flyer to Digital Man on Sun Mar 18 2007 01:05 pm

>  > Enter in response to what? GETSTR or GETKEY or GETCMD?
>
> the current code is for a GETCMD
> -----
> getcmd YN\r?
> logkey
>
> cmdkey N
>   goto theend
> end_cmd
>
> cmdkey Y
>   goto write
> end_cmd

From baja.html:

If a RETURN or GOTO function will be
executed before the END_CMD function, then a CMD_POP function must be executed
to tell the interpreter to "forget" the previous CMD_HOME function.

So looks like you're missing some CMD_POP calls in there.

> -----
> hitting the return key sends me to "Y"

Interesting. I don't see why it would.

> all I want it to do is behave the same as "N"

So create a cmdkey \r block.

>  > GETSTR will return a blank (empty) string in response to the user just
>  > hitting the enter key, where as GETKEY/CMD will set the current command k
>  > to '\r'.
>
> so how do you set the current command key?

UNGETKEY

> The Yes_no works fine, but Yes is highlighted :/

So use the NO_YES function instead.

                                      digital man (xbox-live: digitlman)

Snapple "Real Fact" #85:
The Mona Lisa has no eyebrows.
Norco, CA WX: 79.3�F, 42% humidity, 0 mph SE wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net