projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
print adapt to screen size
[rainbowstream.git]
/
rainbowstream
/
rainbow.py
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 9461d22679a274e70a61a35e571d0f91ecd6ee11..00621d0fba9b4ac78202ba27ce52fd0aaa7feeca 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-136,11
+136,13
@@
def search():
"""
t = Twitter(auth=authen())
rel = t.search.tweets(q='#' + g['stuff'])['statuses']
"""
t = Twitter(auth=authen())
rel = t.search.tweets(q='#' + g['stuff'])['statuses']
- printNicely(grey('**************************************************************************************\n'))
+ h, w = os.popen('stty size', 'r').read().split()
+
+ printNicely(grey('*'*int(w)+'\n'))
print('Newest',SEARCH_MAX_RECORD, 'tweet: \n')
for i in xrange(5):
draw(t=rel[i],keyword=g['stuff'].strip())
print('Newest',SEARCH_MAX_RECORD, 'tweet: \n')
for i in xrange(5):
draw(t=rel[i],keyword=g['stuff'].strip())
- printNicely(grey('*
*************************************************************************************
\n'))
+ printNicely(grey('*
'*int(w)+'
\n'))
def friend():
def friend():