HP Forums
(50G) TERMINAL VIEW (I/O) Printing and capturing data, emulating a terminal - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (50G) TERMINAL VIEW (I/O) Printing and capturing data, emulating a terminal (/thread-7446.html)



(50G) TERMINAL VIEW (I/O) Printing and capturing data, emulating a terminal - compsystems - 12-19-2016 04:45 PM

Hello

I am emulating a terminal view.
FEATURES:
0: prettyPrint (math textbook)
1: font change (8/7/6/5) pixels
2: printing of GRAPHS (GROBS)
4: popups (choose, and menus) inside the view
5: input line

TO DO:
0: improve data capture on screen
1: horizontal scroll for large equations. (I think it is only feasible with system RPL) =( Who can help me?
2: print continuously (vertically) for now only a screen. (I think it is only feasible with system RPL) =(

Suggested, comments are welcome

files: Binary File (Library and test directory) VERSION 1.0.3

[Image: TerminalWindow_RPL_HP50_image02.png]

[Image: TerminalWindow_RPL_HP50_image03.png]

Sample of use (USER-rpl).
PHP Code:
«
{
"** Deduction Quadratic Formula **" print wait

"" print
"Quadratic Equation" print wait

"" print
'(a*x^2+b*x+c)=0' ::'equ' STO
equ prettyPrint wait

"" print
"assume(a>0)" print wait

"" print
": answer - c" print wait
'equ' - ::'equ' STO
equ prettyPrint wait

"" print
": COLLECT(answer)" print wait
equ 
EVAL ::'equ' STO
equ prettyPrint wait

"" print
": answer/a" print wait
'equ' / ::'equ' STO
equ prettyPrint wait

"" print
": DISTRIB(answer)" print wait
`DISTRIB(equ)` ::'equ' STO
equ prettyPrint wait
}
terminalViewInit
gotoHomeScreen
» 

New command: INPUTLINE


[Image: TerminalWindow_RPL_HP50_image04.png]

Sample of use (USER-rpl).
PHP Code:
«
   
x y PURGE
   clearTermView
   
{
     
"Enter X value" print
     
'x' inputLine
     
"Enter Y value" print
     
'y' inputLine
     
"The sum is: " x y + + print
   }
   
terminalViewInit
   gotoHomeScreen
   
x y PURGE
 »