[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: XPL problem with



Carl,

Ooops. I sent the wrong program. The whole problem was that putting the later didn't work, and yet I sent the one with the earlier (a test). Here's the actual one with the problem. It uses s/g 555, not 55, but I don't think that matters. I tested with 55 and got the same results. What I get is no prompt until after I hit "x." Interestingly, I now notice that the cursor goes back to the start of what was on the command line, without erasing it. What do you get?

XPLeNCODE v2.0
b-gin [UNTITLED]
{176}SV01,{177}{176}SV50,{177}{176}SV555,0{177};*;[cr|lf];*;[
cr|lf][XD_][TF_][DF_][NW_][DF_]{176}SX555,{176}PV555{177}+1{1
77}{176}PRHit any key to proceed @555{177}[FF_];*;[cr|lf]{176
}IF{176}RK{177}=="x"{177}{176}PR@555{177}{176}EX1{177}{176}EI
{177};*;[cr|lf][BC_]done;*;[cr|lf];*;[cr|lf]{176}ex{177}
-nd
XPLeNCODE

No, I'm not using DX. Nor ES 1.

Reply to note from Harry Binswanger Mon, 03 Jan
2011 22:32:24 -0500

> I'm trying to debug my XPL programs by inserting a wait for me
> to hit a key, and to exit if I hit "x."
>
> But on my system, this doesn't give the prompt until after the
> keystroke has been given.

Your PRompt is misplaced. Put it before the RK statement if you want
it to display before the RK. Also, earlier in the code, you have an
extraneous PRompt that's immediately destroyed by func FF and
therefore does nothing.

Try this:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SV01,{>}{<}SV50,{>}{<}SX55,0{>};*;[cr|lf];*;[cr|lf][XD_][T
F_][DF_][NW_][DF_]{<}SX55,{<}PV55{>}+1{>};*;[cr|lf]{<}PR@55{>
}{<}IF{<}RK{>}=="x"{>}{<}EX1{>}{<}EI{>};*;[cr|lf][BC_]done;*;
[cr|lf]{<}EX{>}[cr|lf]
-nd
XPLeNCODE

> (I also have a problem that in longer programs, the screen is
> not updated, even when I put in an FF, but first things first.)

Are you freezing the display (func DX) at any point? If so, use
DO FF . Also, try having the program work in eXPanded view instead
of in a formatted view. Hard to say more without a concrete example.

--
Carl Distefano
cld@xxxxxxxx


Harry Binswanger
hb@xxxxxxxx