Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
让 Io 切换终端文本的颜色有什么特别的技巧吗?在 Python 中我可以运行
print "\033[0;34;40mHi!"
并得到一个蓝色的“嗨!”。
在艾欧,
"\033[0;34;40mHi!" println
似乎没有效果。
不幸的是,看起来 Io 序列(字符串)只转换单个(字母)字符转义码,如 \n 或 \t。
所以(目前)这可能是唯一的解决方法:
27 asCharacter .. "[0;34;40mHi!" println