Color disk labels in badblocks panes
This commit is contained in:
parent
d173d317e3
commit
e1ef9db6b6
1 changed files with 4 additions and 1 deletions
|
|
@ -619,7 +619,10 @@ def disk_surface_scan(state, test_objects):
|
||||||
with open(log_path, 'a') as _f:
|
with open(log_path, 'a') as _f:
|
||||||
size_str = std.bytes_to_string(dev.details["size"], use_binary=False)
|
size_str = std.bytes_to_string(dev.details["size"], use_binary=False)
|
||||||
_f.write(
|
_f.write(
|
||||||
f'[{dev.path.name} {size_str}]\n',
|
std.color_string(
|
||||||
|
[dev.path.name, size_str, '\n'],
|
||||||
|
['BLUE', 'CYAN', None],
|
||||||
|
),
|
||||||
)
|
)
|
||||||
_f.flush()
|
_f.flush()
|
||||||
exe.run_program(
|
exe.run_program(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue