From e1ef9db6b657ce167dc628452859c6f5597fc002 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 5 Dec 2019 23:02:08 -0700 Subject: [PATCH] Color disk labels in badblocks panes --- scripts/wk/hw/diags.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/wk/hw/diags.py b/scripts/wk/hw/diags.py index 5bc33ba0..e6fad52a 100644 --- a/scripts/wk/hw/diags.py +++ b/scripts/wk/hw/diags.py @@ -619,7 +619,10 @@ def disk_surface_scan(state, test_objects): with open(log_path, 'a') as _f: size_str = std.bytes_to_string(dev.details["size"], use_binary=False) _f.write( - f'[{dev.path.name} {size_str}]\n', + std.color_string( + [dev.path.name, size_str, '\n'], + ['BLUE', 'CYAN', None], + ), ) _f.flush() exe.run_program(