macro styledEchoPrint*(m: varargs[untyped]): typed = ## partially lifted from 
an earler macro in terminal.nim and removed new line result = 
newNimNode(nnkStmtList) for i in countup(0, m.len - 1): 
result.add(newCall(bindSym"styledEchoProcessArg", m[i])) 
result.add(newCall(bindSym"write", bindSym"stdout", newStrLitNode(""))) 
result.add(newCall(bindSym"resetAttributes"))

Reply via email to