Print and Terminal in Home...
|
03-13-2015, 07:34 PM
Post: #1
|
|||
|
|||
Print and Terminal in Home...
hi all,
I'm using PRINT() to give an online help in Terminal. Code: Code:
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 ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
03-13-2015, 07:56 PM
Post: #2
|
|||
|
|||
RE: Print and Terminal in Home...
I think PRINT(); will clear the terminal.
Marcus von Cube Wehrheim, Germany http://www.mvcsys.de http://wp34s.sf.net http://mvcsys.de/doc/basic-compare.html |
|||
03-13-2015, 08:13 PM
(This post was last modified: 03-13-2015 08:20 PM by salvomic.)
Post: #3
|
|||
|
|||
RE: Print and Terminal in Home...
(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:
but doing so, when the user tap the screen to scroll the text will be erased... Salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
03-14-2015, 09:17 AM
Post: #4
|
|||
|
|||
RE: Print and Terminal in Home...
for now I solved so:
Code:
first erase the Terminal, then print my message. However, doing so, also other system message will be erased... salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
09-16-2015, 04:01 PM
(This post was last modified: 09-16-2015 04:02 PM by StephenG1CMZ.)
Post: #5
|
|||
|
|||
RE: Print and Terminal in Home...
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) Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
09-16-2015, 04:14 PM
(This post was last modified: 09-16-2015 04:14 PM by salvomic.)
Post: #6
|
|||
|
|||
RE: Print and Terminal in Home...
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) ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)