CLI walls examples¶
You can use or extend CLIWall
and CLIColorfulWall
to display
tweets in different way. We use click
as the printer but every
object implementing methods echo
, clear
(and for styling also
style
and secho
) can be used. The Tweet object in following
examples is the same as in Tweet examples.
CLIWall examples¶
>>> wall = CLIWall(click)
>>> wall.print_tweet(tweet)
24/09/2012 03:35:21 (https://twitter.com/sean_cummings/statuses/250075927172759552)
Sean Cummings [sean_cummings]: Aggressive Ponytail #freebandnames
CLIColorfulWall examples¶
>>> wall = CLIColorfulWall(click)
>>> wall.print_tweet(tweet)
24/09/2012 03:35:21 (https://twitter.com/sean_cummings/statuses/250075927172759552)
Sean Cummings [sean_cummings]: Aggressive Ponytail #freebandnames
Only difference is that click
will colorize and use bold/underline styling
if the terminal allows it. For better understanding see picture below (from XFCE4
terminal):