From c138cc36b4b4ad34f982492939db5ae16f409a88 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 8 Oct 2011 02:14:42 +0200 Subject: new syntactic construct: a{i} --- lib/pure/terminal.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure') diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim index ab9c31c8f..0fd631eed 100755 --- a/lib/pure/terminal.nim +++ b/lib/pure/terminal.nim @@ -312,7 +312,7 @@ proc setBackgroundColor*(bg: TBackgroundColor, bright=false) = # These should be private, but there is no yet # facility for binding local symbols within macros proc styledEchoProcessArg*(s: string) = write stdout, s -proc styledEchoProcessArg*(style: TStyle) = setStyle {style} +proc styledEchoProcessArg*(style: TStyle) = setStyle({style}) proc styledEchoProcessArg*(style: set[TStyle]) = setStyle style proc styledEchoProcessArg*(color: TForegroundColor) = setForeGroundColor color proc styledEchoProcessArg*(color: TBackgroundColor) = setBackGroundColor color -- cgit 1.4.1-2-gfad0