Skip to content

Commit

Permalink
Add unerline and inverse to ANSI test notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycpsu committed Feb 14, 2017
1 parent 007f7e4 commit 6cfb7a0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tools/tests/ANSI Test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,42 @@
"RESET = ESC + \"00m\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Bold, underline and inverse text"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"This is normal text\n",
"\n",
"\u001b[01mThis is bold text\n",
"\n",
"\u001b[04mThis is underlined text\n",
"\n",
"\u001b[07mThis is inverse text\n"
]
}
],
"source": [
"print (\"This is normal text\")\n",
"print()\n",
"print (\"{ESC}01mThis is bold text\".format(**locals()))\n",
"print()\n",
"print (\"{ESC}04mThis is underlined text\".format(**locals()))\n",
"print()\n",
"print (\"{ESC}07mThis is inverse text\".format(**locals()))"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 6cfb7a0

Please sign in to comment.