HP Forums
How to display terminal on virtual calculator - 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: How to display terminal on virtual calculator (/thread-5323.html)



How to display terminal on virtual calculator - daryl178 - 12-13-2015 12:08 AM

I know that to display the terminal on the HP Prime is ON+T; but how do you display the terminal using the virtual calculator and the connectivity kit? Once my program ends, I would like to go back and view what was printed.


RE: How to display terminal on virtual calculator - DrD - 12-13-2015 05:28 AM

[HOME] Try entering from command line:
PRINT("")

Side effect: Adds CRLF. However it does get to the Terminal screen from the emulator. You could also include CHAR's in lieu of an empty string. Future print output will be offset, accordingly.

-Dale-


RE: How to display terminal on virtual calculator - daryl178 - 12-13-2015 08:10 AM

Thanks Dale. Tried it. The PRINT("") is being interpreted the same as a PRINT() and simply clears the terminal.


RE: How to display terminal on virtual calculator - Tim Wessman - 12-13-2015 04:18 PM

Try a print of a space PRINT(" "). Nothing else to do at the moment in the emulator.

Side note, anyone have any good ideas regarding a UI or way to handle special key presses like this? At one point doing a middle click would press and hold keys down, but it was a bit to easy to do on accident and wouldn't work for anything but desktop systems. I've thought about maybe a "special key" menu that would have them listed out in a drop down (similar to what you get in some virtual machines programs), but that doesn't seem very convenient.

Anyone have any comments or ideas?


RE: How to display terminal on virtual calculator - Marcus von Cube - 12-13-2015 05:28 PM

(12-13-2015 04:18 PM)Tim Wessman Wrote:  Anyone have any comments or ideas?

A long press / right click / double tap or whatever on the respective key (T), perhaps? On a keyboard, ctrl+T or Win+T might be convenient. If this where a menu option the shortcut could be part of the menu text.


RE: How to display terminal on virtual calculator - fhub - 12-14-2015 09:39 AM

(12-13-2015 04:18 PM)Tim Wessman Wrote:  Anyone have any comments or ideas?
Maybe pressing the <Shift>-key (on the PC) while clicking at [ON] could 'lock' this [ON] until the next emulator key is clicked?

Franz


RE: How to display terminal on virtual calculator - daryl178 - 12-15-2015 05:36 AM

I like Franz's idea. His idea would allow the Shift-ON to turn orange to indicate selected and upon receipt of the next key press, ON+<key> sequence pair could be sent to the emulator. The ON key would then return to the white color.


RE: How to display terminal on virtual calculator - DrD - 04-11-2018 10:03 PM

(12-13-2015 12:08 AM)daryl178 Wrote:  I know that to display the terminal on the HP Prime is ON+T; but how do you display the terminal using the virtual calculator and the connectivity kit? Once my program ends, I would like to go back and view what was printed.

Better late than never:

If you mouse click to press the VC [On] key, (holding it pressed), while typing a '/' (divide, or forward slash) character, the terminal screen will appear!

-Dale-


RE: How to display terminal on virtual calculator - daryl178 - 04-12-2018 06:23 AM

Thanks DrD. Yes, a tad late; but still valuable and complete.


RE: How to display terminal on virtual calculator - Arno K - 04-12-2018 07:01 AM

Wow, another finger cruncher, at least on a German keyboard, the / is in the middle of the top row, I must use the little and the index finger of my left hand to reach them as my right hand is occupied holding down the mouse.
Arno


RE: How to display terminal on virtual calculator - Brad Barton - 04-13-2018 01:52 AM

Some of these combinations would be difficult on a tablet computer. Not sure how long presses are handled on them.


RE: How to display terminal on virtual calculator - Cristóbal De Jesús - 04-13-2018 10:21 PM

(12-13-2015 04:18 PM)Tim Wessman Wrote:  ...
Anyone have any comments or ideas?

Mouse: [Right-click and hold] on first key, upon visual confirmation, slide to second key and release.

Tablet: [double-tap and hold] on first key, upon visual confirmation, slide to second key and lift finger. Without visual confirmation: just interpret as a double entry. However, most tablets can handle multiple touch points so this suggestion could be implemented as a secondary method.

More than two keys? I don't know.


RE: How to display terminal on virtual calculator - compsystems - 04-14-2018 01:40 PM

Xcas has a command that starts the terminal view DispG, please include this command, too is very important that the terminal view keeps the impressions, because some commands print outgoing messages and delete the terminal view history.


RE: How to display terminal on virtual calculator - Giancarlo - 04-14-2018 02:23 PM

Hello,
What is the difference between PRINT() in the Prime and DispG in Xcas?
Thanks

Giancarlo


RE: How to display terminal on virtual calculator - compsystems - 04-14-2018 02:49 PM

the difference that PRINT() deletes the terminal view, loss of previous information =(

try the following scripts

Xcas
PHP Code:
DispGprintf(x^2); DispHomeDispG

HP-Prime
PHP Code:
PRINT();print(x^2);PRINT() ; 

we also need a command with printing with format, printf cmd of Xcas

I still can not execute the following code in the hp-prime = (, it will be required command management of auto-simplified flags and readable printing type of math book and not linear expressions

PHP Code:
sol_sys():={
local y,x,list0,expr0,lsolx,y1,y2,sols,test1;
purge(x,y);
autosimplify(nop); autosimplify();
approx_mode(0); approx_mode();
DispGClrIOprintf("Solving a system of two equations"); printf("Solve the following system:
"
);
list0 := [ x^22*]; printf(list0);
printf("substitute y = x² in y = 2x + 3:");
expr0 := subst(list0(2),list0(1)); printf(expr0);
printf("substract 2x + 3:");
expr0 := expr0-(2*3); printf(expr0);
printf("simplify:");
expr0 := simplify(expr0); printf(expr0);
printf("factor:");
expr0 := factor(expr0); printf(expr0);
printf("zero factor theorem:");
lsolx := [ part(left(expr0),1)=0part(left(expr0),2)=]; printf(lsolx);
printf("First factor plus 3, second minus 1:");
lsolx := [lsolx(1)+3lsolx(2)-]; printf(eval(lsolx,1));
printf("simplify"); printf("x values:");
lsolx := simplify(lsolx); printf(lsolx);
printf("y values:"); printf("Replace x values in the system, firts equation");
y1 := subst(list0(1),lsolx(1)); printf(y1);
printf("Replace x values in the system, second equation");
y2 := subst(list0(1),lsolx(2)); printf(y2);
printf("Solutions shaped as a array");
sols:=[[lsolx(1),y1],[lsolx(2),y2]]; printf(sols);
printf("Checking results:"); printf("Replace x and y values in the system, firts equation");
test1 := subst(list0(1),[sols(1,1),sols(1,2)]); printf(test1);
printf("Evaluate:");
test1 := evalb(test1); printf(test1);
printf("Replace x and y values in the system, second equation");
test1 := subst(list0(1),[sols(2,1),sols(2,2)]); printf(test1);
printf("Evaluate:");
test1 := evalb(test1); printf(test1);
sols := solve([ x^22*],[x,y]); printf("Solutions:"); printf(sols);
printf("Solutions shaped as a boolean expression:");
sols := list2exp(sols,[x,y]); printf(eval(sols,1));
printf("Graphing");
plot([x^2,2*x+3],x);
return(
"Done");
}:;