Post Reply 
terminal view to the main screen (history view) cmd
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 


Messages In This Thread
RE: terminal view to the main screen (history view) cmd - compsystems - 11-01-2018 04:43 AM



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