Color disk labels in badblocks panes

This commit is contained in:
2Shirt 2019-12-05 23:02:08 -07:00
parent d173d317e3
commit e1ef9db6b6
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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(