help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] ANSI Escape Codes


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] ANSI Escape Codes
Date: Tue, 08 Jul 2014 10:13:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Il 08/07/2014 02:50, Ryland Taylor-Almanza ha scritto:
I'm trying to make a console-based program that makes use of ANSI
escape codes. I can't seem to figure out how to go about printing a
string object formatted with ANSI escape codes. I've tried the
following.

'\x1b[31mHi' displayNl

You can use formatted strings to put the Escape character in place:

('%1[31mHi' % #($<16r1b>)) displayNl.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]