Error using function Style() in "consolecolors.ring"

11 views
Skip to first unread message

Irwin Rodriguez

unread,
Nov 29, 2022, 5:17:14 PM11/29/22
to The Ring Programming Language
Please anyone try this simple example and let me know if it throws the same error message as mine:

load "consolecolors.ring"

Style("Hello world!", :YellowBlack)

Line 2 Error (R3) : Calling Function without definition !: style


NOTE: if you run the source code from ring/tools/ringpm/ringpm.ring then the Style() function works as expected which got me confused... am I missing something?

Ilir

unread,
Nov 29, 2022, 7:07:47 PM11/29/22
to The Ring Programming Language
Hello Irwin,

Style is a function in cuilib/cuilib.ring, calling cc_print from the consolecolors library.

Greetings,
Ilir
Reply all
Reply to author
Forward
0 new messages