Post Reply 
terminal view to the main screen (history view) cmd
10-31-2018, 10:50 PM (This post was last modified: 11-03-2018 12:29 PM by compsystems.)
Post: #1
terminal view to the main screen (history view) cmd
Hello, users and developer group of the famous hp-prime calculator
Sorry for my technical english.

In the following program

PHP Code:
#cas
    
prg00( ):=
    
begin
        local X
Y;
        
assume(Xsymbol); // elimina valor de X para asumirla como símbolo
        
assume(Ysymbol); // elimina valor de Y para asumirla como símbolo
        
PRINT; // Limpiar pantalla
        
print( "Hello Mathematical World" ); // Escribir "Hola  mundo matemático "
        
wait); // Esperar 2 segundos
        
print( 'X²/3 - Y²/5 = 1'  );
        
wait);
        PRINT; 
        return 
“Done”;
    
end;
#end 

I have a question

How to return from the terminal view to the main screen (history view)?

for example in xCAS there is the DispHome() command

Thanks
JaiMeza
Find all posts by this user
Quote this message in a reply
10-31-2018, 10:55 PM (This post was last modified: 10-31-2018 10:57 PM by eried.)
Post: #2
RE: terminal view to the main screen (history view) cmd
Code:
Syntax:
STARTVIEW(ViewNumber[,Redraw])

Starts a view of the current app. Redraw, is optional; if Redraw, is true (non 0), it will force a refresh for the view.

The view numbers are as follows:
0=Symbolic
1=Plot
2=Numeric
3=Symbolic Setup
4=Plot Setup
5=Numeric Setup
6=App Info
7=Views key

And NO... the Prime does not need a
Code:
STARTVIEWHOME()
command

My website: erwin.ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
11-01-2018, 04:43 AM (This post was last modified: 11-03-2018 12:29 PM by compsystems.)
Post: #3
RE: terminal view to the main screen (history view) cmd
Hello Erwin

(10-31-2018 10:55 PM)eried Wrote:  And NO... the Prime does not need a STARTVIEWHOME() command
Why?
On the contrary, it is necessary, because the screen is small, it is a way of dividing the views

Quote:If ViewNumber is negative, the following global views are used:
-1=Home Screen
-2=Modes
-3=Memory Manager
-4=App Library
-5=Matrix Catalog
-6=List Catalog
-7=Program Catalog
-8=Note Catalog
?=CAS view

STARTVIEW( -1, 1 ); // return to HOME VIEW
Iseems that it does not work, please try the following code

PHP Code:
#cas
    
prg00( ):=
    
begin
        local X
Y;
        
assume(Xsymbol); // Remove the value of X to assume it as a symbol
        
assume(Ysymbol); // Remove the value of Y to assume it as a symbol
        
PRINT; // clear screen.
        
print( "Hello Mathematical world" ); 
        
wait); // Wait 2 seconds
        
print( 'X²/3 - Y²/5 = 1'  );
        
wait);
        PRINT; 
        
STARTVIEW( -1); // return to HOME VIEW
        
return “Done”;
    
end;
#end 

The equivalent in xcas is

PHP Code:
prg00():={
        
local XY;
        
assume(Xsymbol); // Remove the value of X to assume it as a symbol
        
assume(Ysymbol); // Remove the value of Y to assume it as a symbol                
          
DispG;  // Initialize terminal view and graphic view.
        
ClrIO // clear screen.
        
print( "Hello Mathematical world." ); 
        
WAIT); // Wait 2 seconds
        
printf//1  ); // Print in 2D readable printing (Pretty Print)

        
WAIT);
        
ClrIO
        
DispHome // return to HOME VIEW
        
return “Done”;
}:; 

And it works well, that is to say it is executed from the main view that in xcas is called worksheet then it opens the terminal view and at the end it returns to the terminal view, without having to press the key [esc]

JaiMeza
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)