summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'example.py')
-rw-r--r--example.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/example.py b/example.py
index 909ce46..5814fbc 100644
--- a/example.py
+++ b/example.py
@@ -25,11 +25,8 @@ import ttystatus
def main():
ts = ttystatus.TerminalStatus(period=0.1)
- ts.add(ttystatus.ElapsedTime())
- ts.add(ttystatus.Literal(' Looking for files: '))
- ts.add(ttystatus.Counter('pathname'))
- ts.add(ttystatus.Literal(' found, currently in '))
- ts.add(ttystatus.Pathname('dirname'))
+ ts.format('%ElapsedTime() Looking for files: %Counter(pathname) found, '
+ 'currently in %Pathname(dirname)')
pathnames = []
for dirname, subdirs, basenames in os.walk(sys.argv[1]):