mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-10-10 02:47:23 +00:00
Build with colour output when on a tty/console.
This commit is contained in:
parent
f08e49d856
commit
6da0d5d685
7 changed files with 195 additions and 176 deletions
|
|
@ -2,7 +2,13 @@ MODULE Out; (* DCW Brown. 2016-09-27 *)
|
|||
|
||||
IMPORT SYSTEM, Platform;
|
||||
|
||||
VAR buf: ARRAY 128 OF CHAR; in: INTEGER;
|
||||
VAR
|
||||
IsConsole-: BOOLEAN;
|
||||
|
||||
buf: ARRAY 128 OF CHAR;
|
||||
in: INTEGER;
|
||||
|
||||
|
||||
|
||||
PROCEDURE Flush*;
|
||||
VAR error: Platform.ErrorCode;
|
||||
|
|
@ -199,5 +205,7 @@ PROCEDURE LongReal*(x: LONGREAL; n: INTEGER);
|
|||
BEGIN RealP(x, n, TRUE);
|
||||
END LongReal;
|
||||
|
||||
BEGIN in := 0
|
||||
BEGIN
|
||||
IsConsole := Platform.IsConsole(Platform.StdOut);
|
||||
in := 0
|
||||
END Out.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue