diff --git a/terminalplotter.py b/terminalplotter.py index 47f052d..20cb7da 100644 --- a/terminalplotter.py +++ b/terminalplotter.py @@ -1,5 +1,4 @@ import asyncio -import io import math import select import sys @@ -53,6 +52,10 @@ class TerminalPlotter(pv.Plotter): self.camera.Elevation(10) elif c == "s": self.camera.Elevation(-10) + elif c == "+": + self.camera.zoom(1.1) + elif c == "-": + self.camera.zoom(0.9) async def _input_loop(self): fd = sys.stdin.fileno()