Skip to content

miyako/4d-class-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4d-class-CLI

LOG EVENT wrapper class

8-bit and 16-bit colours

A Simple API to print ASCII escape codes.

var $CLI : cs.CLI

$CLI:=cs.CLI.new()

//foreground
$CLI.print("Hello World"; "red;bold;underline").LF()
//foreground and background
$CLI.print("Hello World"; "red;yellow;bold;underline").LF()

$CLI.LF()

//16-bit color
For ($i; 0; 255)
	$CLI.print(String($i; "^^0"+"   "); String($i)+";bold")
End for 

$CLI.LF()

References

https://blog.4d.com/headless-4d-applications/

https://developer.4d.com/docs/Admin/cli/

https://doc.4d.com/4Dv19/4D/19/Command-Line-Interface.300-5416693.en.html

Releases

No releases published

Packages

No packages published