Skip to content

Commit

Permalink
Merge pull request #98 from dflock/patch-1
Browse files Browse the repository at this point in the history
Update intro.rst to enable syntax highlighting
  • Loading branch information
jquast authored Jun 6, 2017
2 parents f249a2c + 106bcea commit 18eb435
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ Introduction

Blessed is a thin, practical wrapper around terminal capabilities in Python.

Coding with *Blessed* looks like this... ::
Coding with *Blessed* looks like this...

.. code-block:: python
from blessed import Terminal
Expand Down Expand Up @@ -82,7 +84,9 @@ Before And After
----------------

With the built-in curses_ module, this is how you would typically
print some underlined text at the bottom of the screen::
print some underlined text at the bottom of the screen:

.. code-block:: python
from curses import tigetstr, setupterm, tparm
from fcntl import ioctl
Expand Down Expand Up @@ -119,7 +123,9 @@ print some underlined text at the bottom of the screen::
# Restore cursor position.
print(rc)
The same program with *Blessed* is simply::
The same program with *Blessed* is simply:

.. code-block:: python
from blessed import Terminal
Expand Down

0 comments on commit 18eb435

Please sign in to comment.