HP Forums
Print and Terminal in Home... - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Print and Terminal in Home... (/thread-3361.html)



Print and Terminal in Home... - salvomic - 03-13-2015 07:34 PM

hi all,
I'm using PRINT() to give an online help in Terminal.
Code:
Code:

...
mesg="my long message...";
PRINT(mesg);
...

When I'm in CAS all ok, the Terminal is cancelled when I execute again the program, but when I execute the program in Home the Terminal isn't cancelled and the message is added to the previous one, duplicated...
Any hint to give the user the option to read the screen and then cancel it?

Thank you in advance


RE: Print and Terminal in Home... - Marcus von Cube - 03-13-2015 07:56 PM

I think PRINT(); will clear the terminal.


RE: Print and Terminal in Home... - salvomic - 03-13-2015 08:13 PM

(03-13-2015 07:56 PM)Marcus von Cube Wrote:  I think PRINT(); will clear the terminal.

you are right, but if I use

print("message...");
print;

the Terminal is written, than erased...

I tried
Code:

print("message...");
WAIT(0);
print;

but doing so, when the user tap the screen to scroll the text will be erased...

Salvo


RE: Print and Terminal in Home... - salvomic - 03-14-2015 09:17 AM

for now I solved so:
Code:

message:= " ...";
PRINT;
PRINT(message);
...

first erase the Terminal, then print my message.
However, doing so, also other system message will be erased...

salvo


RE: Print and Terminal in Home... - StephenG1CMZ - 09-16-2015 04:01 PM

To read and cancel just your text without clearing the whole screen:

I know of no way of doing that using PRINT.

the obvious way to temporarily display something would be to use MSGBOX.

If that doesn't help, less obvious ways to put something onscreen temporarily include:
INPUT (a screen at a time; up to seven I think;
several inputs per screen, each with their own descriptive label text)
CHOOSE (scroll through an indefinite number of lines, more than are onscreen)
Using graphics (save all the pixels, draw something, restore original pixels)


RE: Print and Terminal in Home... - salvomic - 09-16-2015 04:14 PM

thank you Stephen, but I would just cancel the whole Terminal also in Home, in the original post, so I tried PRINT; as a workaround...

Salvo (IT9CLU)