Fix ANSI bold/underline/inverse test to reset after each line.

pull/2186/head
Tony Cebzanov 9 years ago
parent aadb343296
commit d3cd8583a2

@ -48,22 +48,22 @@
"text": [
"This is normal text\n",
"\n",
"\u001b[01mThis is bold text\n",
"\u001b[01mThis is bold text\u001b[00m\n",
"\n",
"\u001b[04mThis is underlined text\n",
"\u001b[04mThis is underlined text\u001b[00m\n",
"\n",
"\u001b[07mThis is inverse text\n"
"\u001b[07mThis is inverse text\u001b[00m\n"
]
}
],
"source": [
"print (\"This is normal text\")\n",
"print()\n",
"print (\"{ESC}01mThis is bold text\".format(**locals()))\n",
"print (\"{ESC}01mThis is bold text{RESET}\".format(**locals()))\n",
"print()\n",
"print (\"{ESC}04mThis is underlined text\".format(**locals()))\n",
"print (\"{ESC}04mThis is underlined text{RESET}\".format(**locals()))\n",
"print()\n",
"print (\"{ESC}07mThis is inverse text\".format(**locals()))"
"print (\"{ESC}07mThis is inverse text{RESET}\".format(**locals()))"
]
},
{

Loading…
Cancel
Save