]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Run tput smam to make sure line wrapping is reenabled
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 18 Aug 2023 19:11:34 +0000 (21:11 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 18 Aug 2023 19:12:27 +0000 (21:12 +0200)
When running seabios, it disables line wrapping for some weird
reason, so let's make sure we reenable it before we exit.

mkosi/__main__.py

index 092cd9ab78862d71d3e82ee4e2b0961e3d93f433..bf8aab7b19ae27318095b4adf5b0deb19be2638e 100644 (file)
@@ -52,6 +52,7 @@ def main() -> None:
     finally:
         if sys.stderr.isatty() and shutil.which("tput"):
             run(["tput", "cnorm"])
+            run(["tput", "smam"])
 
 
 if __name__ == "__main__":