Poll: Should the terminal from the PRINT command behavior remain the same, or change to 1 screen before the last printed character?
This poll is closed.
Leave as is until terminal enhancements later 62.50% 15 62.50%
Change default behavior to be last character always on screen 37.50% 9 37.50%
Total 24 votes 100%
* You voted for this item. [Show Results]

Post Reply 
Vote: Terminal Behavior
01-19-2016, 09:14 PM
Post: #4
RE: Vote: Terminal Behavior
In some programs of mine I used intensely the Terminal, and a big problem was to wait Terminal and start another page...
In the astronomic program I used this trick: to define a function like this:
Code:

waittap()
BEGIN
 LOCAL a,b,c,d;
 a:=1;
 b:={};
 c:={};
 d:={1};
 WHILE a>0 DO
  a:=WAIT(−1);
  IF TYPE(a)==6 THEN
   b:=wait(-1);
   c:=wait(-1);
   if b(1)==2 then
   else
    while d(1)==1 do
     d:=wait(-1);
    end;
   end;
   break;
  end;
  a:=-a;
 END;
 return concat({a*1},{b*1},{c*1},{d*1});
END;

then use this waitapp() function so:
Code:

 PRINT;
  PRINT("Date " + m + " " + D + " " + Y);
  temp:= dayOfYear(lista);
  PRINT("Day " +temp+ " of the year "+Y);
  PRINT("Julian Day " + JD);
  PRINT("Julian Day Effemerides " + JDE);
  PRINT("N (from 1901-jan-01) " + N);
  PRINT("T (from JD) " + TSid(5));
  PRINT(" ");
  PRINT("Θ0 Sidereal Time 0h " + →HMS(TSid(1)));
  PRINT("Local Sideral Time " + →HMS(TSid(2)));
  PRINT("GAST TS apparente " + →HMS(TSid(3)));
  PRINT("θ0 Mean ST GMT " + →HMS(TSid(4)));
  PRINT("Θ0 Sidereal Time 0h (DEG) " + trunc_angle(TSid(1)*15));
  PRINT("θ0 Mean ST GMT (DEG) " + trunc_angle(TSid(4)*15));
waittap();
PRINT();
  PRINT("Δψ Nutazione (longit.) "+ deltapsi);
  PRINT("Δε Nutazione (obl.) "+ deltaepsilon);
// ...

waittap();
PRINT();
doesn't exit, cancel all, reuse the Terminal...

Maybe a function like this could be added by default to the Terminal behavior...

My two cents.

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Vote: Terminal Behavior - Tim Wessman - 01-19-2016, 04:29 PM
RE: Vote: Terminal Behavior - toml_12953 - 01-19-2016, 08:15 PM
RE: Vote: Terminal Behavior - salvomic - 01-19-2016 09:14 PM
RE: Vote: Terminal Behavior - sbergman27 - 01-21-2016, 01:55 AM



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