- commit
- 263c8fe9903fcc161e2e008397673a5b8230762a
- parent
- 61cab8b273c4f6851b96beeea4fbce8d130c409a
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-07-12 18:07
rename getsize to get_size for consistency
Diffstat
| M | boon.py | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/boon.py b/boon.py
@@ -27,7 +27,7 @@ KEY_RIGHT = CSI + 'C' 27 27 KEY_LEFT = CSI + 'D' 28 28 29 2930 -1 def getsize():-1 30 def get_size(): 31 31 # curses.tigetnum('cols') does not update on resize 32 32 try: 33 33 raw = ioctl(sys.stdout, termios.TIOCGWINSZ, '\000' * 8) @@ -120,7 +120,7 @@ class App: 120 120 self.old_lines = lines 121 121 122 122 def on_resize(self, *args):123 -1 self.rows, self.cols = getsize()-1 123 self.rows, self.cols = get_size() 124 124 self.update() 125 125 126 126 def run(self):