lua-users home
lua-l archive

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


>  From the bash prompt I am able to get red text with this:
> echo -e "This is red->\e[00;31mRED\e[00m"
> 
> but I can't figure out how to do this in Lua? Is there a way?

Use \027 instead of \e:
	print("\027[00;31mRED\027[00m")