From a04bacb4aeb741c4d1a77238f49e1e48e31572cb Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:14 +0100 Subject: Hex. toggle on minimal mode --- bin/modules/handler.py | 1 + bin/modules/printer.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/modules/handler.py b/bin/modules/handler.py index ad62c5c..18f8827 100644 --- a/bin/modules/handler.py +++ b/bin/modules/handler.py @@ -38,6 +38,7 @@ class Handler: self.__min_commands = [ ord("M"), ord(" "), + ord("X"), curses.KEY_RESIZE, self.KEY_ESCAPE, ] diff --git a/bin/modules/printer.py b/bin/modules/printer.py index bf664d2..95fa166 100644 --- a/bin/modules/printer.py +++ b/bin/modules/printer.py @@ -949,7 +949,8 @@ class Printer: def __print_minimal(self): """ Print minimal mode data fields. """ - self.__print_line(1, "Salis --- Minimal mode") + self.__print_line(1, "Salis - Mini mode") for i, field in enumerate(self.__minimal): - self.__print_line(i + 2, "{}: {}".format(field[0], field[1]())) + field_1 = self.__data_format(field[1]()) + self.__print_line(i + 3, "{}: {:>10}".format(field[0], field_1)) -- cgit v1.2.1