Post Reply 
How Drawmenu work's?
11-12-2016, 10:04 PM (This post was last modified: 11-12-2016 10:08 PM by primer.)
Post: #14
RE: How Drawmenu work's?
(11-12-2016 09:05 PM)compsystems Wrote:  But unfortunately there is not function to return to the terminal view =(, I hope that some developer will incorporate a function to goto the terminal view (terminalView(); ), also it requires a vertical AutoScroll, otherwise the terminal view is not useful After the first screen. Do you agree with this?
Whatever I agree or not, it's not my concern about LibMenu. And it's not the original topic anymore...

Ok, when you choose to use terminal in your program, you have to know the limit of it. and to find how to deal with that.
BTW, please note that there is another way to display things on screen : graphics (TEXTOUT), then your program can control scroll.

Ok, lets come back to terminal limitations :
(11-12-2016 09:05 PM)compsystems Wrote:  But unfortunately there is not function to return to the terminal view =(
Yes, there is one : PRINT(""); but it add a new (empty) line.

(11-12-2016 09:05 PM)compsystems Wrote:  also it requires a vertical AutoScroll
When program ends, it allow user to scroll.
But yes, the program cannot control itself the terminal scroll.
As I know that limitation, I can stop spaming the terminal after 12 lines, place a wait and clean the terminal.
Ok, it's far from perfect...

BTW, you can create your own print function that do it for you :
untested :
Code:
local n:=0; // number of printed lines
EXPORT MyPRINT(x) // use that function instead of PRINT
BEGIN
n:=n+1;
PRINT(x);
if n==12 then 
 print"<press any key to continue>";
 wait();
 print(); // clean the terminal
 n:=0;
end;
END;
You place all of that into a new program, name it "compsystemSuperLib",
and voilĂ , you built a lib that enhance your Terminal experiance Wink

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


Messages In This Thread
How Drawmenu work's? - fabio.hdl - 11-03-2016, 05:02 PM
RE: How Drawmenu work's? - Han - 11-03-2016, 06:41 PM
RE: How Drawmenu work's? - Tyann - 11-03-2016, 07:02 PM
RE: How Drawmenu work's? - StephenG1CMZ - 11-03-2016, 08:58 PM
RE: How Drawmenu work's? - toml_12953 - 11-04-2016, 02:28 PM
RE: How Drawmenu work's? - primer - 11-11-2016, 07:31 PM
RE: How Drawmenu work's? - fabio.hdl - 11-05-2016, 08:22 PM
RE: How Drawmenu work's? - compsystems - 11-12-2016, 01:36 AM
RE: How Drawmenu work's? - primer - 11-12-2016, 10:41 AM
RE: How Drawmenu work's? - compsystems - 11-12-2016, 02:53 PM
RE: How Drawmenu work's? - primer - 11-12-2016, 08:36 PM
RE: How Drawmenu work's? - StephenG1CMZ - 11-12-2016, 08:23 AM
RE: How Drawmenu work's? - compsystems - 11-12-2016, 09:05 PM
RE: How Drawmenu work's? - primer - 11-12-2016 10:04 PM
RE: How Drawmenu work's? - compsystems - 11-14-2016, 04:03 AM
RE: How Drawmenu work's? - StephenG1CMZ - 11-14-2016, 09:03 AM
RE: How Drawmenu work's? - ggauny@live.fr - 01-25-2017, 12:11 PM
RE: How Drawmenu work's? - ggauny@live.fr - 01-25-2017, 05:06 PM
RE: How Drawmenu work's? - primer - 01-25-2017, 11:18 PM



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