- commit
- d54149967820d8c28fee3eae6bfb9f987ee10a56
- parent
- 263c8fe9903fcc161e2e008397673a5b8230762a
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-07-12 18:43
rename cursor_move() to move() curses compat
Diffstat
| M | boon.py | 6 | +++--- |
1 files changed, 3 insertions, 3 deletions
diff --git a/boon.py b/boon.py
@@ -93,7 +93,7 @@ def getch(timeout=0.5): 93 93 return os.read(fd, 8).decode('ascii') 94 94 95 9596 -1 def cursor_move(y, x):-1 96 def move(y, x): 97 97 sys.stdout.write(get_cap('cup', y, x)) 98 98 99 99 @@ -108,12 +108,12 @@ class App: 108 108 for i, line in enumerate(lines): 109 109 if len(self.old_lines) > i and line == self.old_lines[i]: 110 110 continue111 -1 cursor_move(i, 0)-1 111 move(i, 0) 112 112 sys.stdout.write(get_cap('el')) 113 113 sys.stdout.write(line) 114 114 115 115 # clear rest of screen116 -1 cursor_move(len(lines), 0)-1 116 move(len(lines), 0) 117 117 sys.stdout.write(get_cap('ed')) 118 118 sys.stdout.flush() 119 119