NullLogic

simple ANSI codes demo

#!/usr/bin/nsp global ANSI = { cls="\e[2J", home="\e[H" }; print(ANSI.cls, ANSI.home); print("\e[00;30;40mdark black\r\n"); print("\e[01;30;40mlight black\r\n"); print("\e[00;31;40mdark red\r\n"); print("\e[01;31;40mlight red\r\n"); print("\e[00;32;40mdark green\r\n"); print("\e[01;32;40mlight green\r\n"); print("\e[00;33;40mdark yellow\r\n"); print("\e[01;33;40mlight yellow\r\n"); print("\e[00;34;40mdark blue\r\n"); print("\e[01;34;40mlight blue\r\n"); print("\e[00;35;40mdark violet\r\n"); print("\e[01;35;40mlight violet\r\n"); print("\e[00;36;40mdark cyan\r\n"); print("\e[01;36;40mlight cyan\r\n"); print("\e[00;37;40mdark white\r\n"); print("\e[01;37;40mlight white\r\n"); print("\e[00;34;46mX\r\n"); print("\e[00m\r\n\r\n");