Post Reply 
Terminal Usage
09-03-2015, 12:29 PM (This post was last modified: 09-03-2015 12:34 PM by toml_12953.)
Post: #5
RE: Terminal Usage
Thanks to eried, I created this simple LOCATE function. It only uses the default font.

Code:
EXPORT LOCATE(TEXT,X,Y)
BEGIN
  TEXTOUT(TEXT,(X-1)*10,242-(Y-1)*14);
END;

Both X and Y start at 1 and (1,1) is the upper left corner of the display. 19 lines fit on the display.

Here's a calling program:

Code:
EXPORT LOCTEST()
BEGIN
  RECT();
  X:=1;
  FOR Y FROM 1 TO 19 DO
    LOCATE("HELLO",X,Y);
    X:=X+1;
  END;
  WAIT;
END;

Thanks again, eried!

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Terminal Usage - toml_12953 - 09-01-2015, 04:52 PM
RE: Terminal Usage - eried - 09-01-2015, 06:35 PM
RE: Terminal Usage - toml_12953 - 09-02-2015, 05:57 PM
RE: Terminal Usage - eried - 09-02-2015, 06:47 PM
RE: Terminal Usage - toml_12953 - 09-03-2015 12:29 PM
RE: Terminal Usage - eried - 09-03-2015, 12:55 PM



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