a12995b37d
Move ddrescue classes to separate files
2023-08-13 17:34:14 -07:00
ee34e692dd
Update source/dest earlier in the workflow
...
Addresses issue #219
2023-08-13 16:31:23 -07:00
24e4f7ddcc
Fix pickling ddrescue State()
2023-07-16 18:07:08 -07:00
bddf47816f
Remove duplicate log setup
2023-07-16 17:46:38 -07:00
0c1c65182c
Fix HW Diags test selections for teststations
2023-07-12 12:48:31 -07:00
cda5aee714
Add option to disable password expiration
2023-07-11 11:12:12 -07:00
7c16d13f65
Generate test maps at runtime in ddrescue-tui
2023-07-09 13:58:59 -07:00
840008d8cd
Specify text encoding for zero-fill map file
2023-07-09 13:23:21 -07:00
090a9f2b96
Update ddrescue-tui logging handling
2023-07-09 00:16:46 -07:00
4467369811
Add finalization options to ddrescue-tui
...
Specifically to zero-fill any gaps from the clone,
to fill the destination with zeros to the end of the device,
and/or to relocate the GPT to the end of the device.
2023-07-08 23:27:05 -07:00
a20fdf7bd3
Only show destination SMART data if present.
...
Also avoids crash when imaging
2023-07-08 18:58:05 -07:00
df1d2b713f
Simplify _poweroff_source_drive()
2023-07-08 18:37:42 -07:00
4a34f5477d
Add delay to TUI() initialization
...
Avoids issue where the main menu is printed before the layout is fully
set causing the first few lines to be hidden by the title pane.
2023-07-08 18:32:31 -07:00
0ace951380
Update run_program to avoid linting warnings
2023-07-08 18:10:59 -07:00
6a1cf98d0b
Terminate ddrescue directly instead
2023-07-08 18:10:14 -07:00
8f14fd2442
Fix SMART attribute tracking
...
Since we've moved to delayed SMART attribute updates we need to set
initial_attributes after we first check the SMART data instead of at
object creation time.
2023-07-08 18:07:55 -07:00
a78a077bdf
Set max idle cutoff to 70* C
...
Addresses issue #204
2023-07-05 15:51:50 -07:00
d101ec627f
Fix off-by-one bug in tmux.fix_layout()
...
If resizing both the title and info groups the second group was starting
at a lower initial width.
2023-07-05 15:48:31 -07:00
408a0c6114
Update TUI layout handling
...
The right column is now created first so the title, info,
current, and worker panes are all in the same "container"
2023-07-05 15:46:27 -07:00
ebd1bbda18
Show SMART data for both devices in ddrescue-tui
2023-07-05 15:00:01 -07:00
7499639c5c
Drop sat,auto detection for smartctl
...
This was needed twofold. First is that it was not working as expected
for some time. Second is that it conflicts with the delayed attribute
updating needed for faster WKClone menus.
2023-07-05 14:57:54 -07:00
d6f3455236
Misc update
2023-07-03 21:27:41 -07:00
55d752dd8b
Use checkmarks in Menu() under ConEmu
2023-07-03 20:45:44 -07:00
f8fc38a78b
Disable highlighting new apps in OpenShell
2023-07-03 20:31:46 -07:00
895d8d2f0a
Disable Bing search desktop widget
2023-07-03 20:25:23 -07:00
815cfde84a
Refactor check_mprime_results() to use sets
2023-07-03 20:16:37 -07:00
9a7fdba3f9
Add warning if cooldown temp is too high vs idle
...
Addresses issue #204
2023-07-03 20:15:03 -07:00
f9a6850c1a
Split CPU & Cooling tests into separate functions
...
Addresses issue #204
2023-07-02 15:10:22 -07:00
172f00e4e9
Adjust type hints for NonBlockingStreamReader()
2023-07-02 14:05:20 -07:00
86203a4b86
Use slots for all dataclasses
...
The minimum Python version was bumped to 3.10 so this is now safe.
2023-06-29 13:48:34 -06:00
8e234ce0cd
Add menu entry for MS Store updates in Auto Setup
...
Addresses issue #216
2023-06-26 08:20:15 -07:00
9689dcfeab
Update source URLs
2023-06-25 04:10:08 -07:00
cafa2c24fb
Switch to winget where appropriate in Auto Setup
...
NOTE: Winget is not used for Firefox, LibreOffice, or Open Shell.
This was done because we need more fine-tuned control of the process.
2023-06-25 02:40:43 -07:00
3ff61e9948
Add winget import support
2023-06-25 02:22:04 -07:00
9980dab27b
Add initial winget support
2023-06-25 02:21:26 -07:00
662f8c1254
Fix bug when running a PowerShell script elevated
2023-06-24 20:32:55 -07:00
dfcc717048
Open both Microsoft Store and Windows updates
...
Addresses issue #216
2023-06-24 19:35:12 -07:00
21cbe5d445
Show filesystem type in select_disk_parts()
2023-06-24 18:58:06 -07:00
d94e9097b7
Reduce ESP size to 260MiB
2023-06-24 18:56:31 -07:00
228a5f640e
Adjust TRIM warning message
2023-06-24 18:56:03 -07:00
acd484f891
Check for TRIM in HW Diagnostics and ddrescue-tui
...
Addresses issue #212
2023-06-17 20:45:44 -07:00
d958945fe8
Relaunch ddrescueview when resuming clone
2023-06-17 20:13:32 -07:00
3e10f2cb8c
Reset layout when aborting HW diagnostics
2023-06-17 18:56:08 -07:00
9810c630f6
Ensure worker panes are added in the proper order
2023-06-17 18:37:56 -07:00
c3bf5f6730
Avoid mixing types for HW Diags main menu
2023-06-17 18:30:33 -07:00
c63b388f81
Small linting refactor
2023-06-17 18:25:12 -07:00
20a0881421
Refactor tmux.fix_layout()
...
The new code better determines all sizes with splits taken into account.
The non-perfect divisions are also considered when splitting
horizontally.
2023-06-17 18:23:09 -07:00
203ad715e0
Refactor ddrescue-tui source/dest selection
...
- Re-enables taking images instead of direct cloning!
- Removed some safety checks for clearer code
- We avoid a second scan by reusing the disk_menu object
2023-06-11 15:48:58 -07:00
986c870090
Move ddrescue-tui menus to a separate file
2023-06-10 21:50:56 -07:00
4feb15182e
Rework SMART self-test sections (again)
...
- Use results from self-test log rather than self-test details
- Include more result details in more scenarios
- Only add self-test results to the report to avoid
duplicate/conflicting info
- Add check if test started but didn't finish (again?)
2023-06-10 18:59:19 -07:00
88d3ade64d
Avoid background crash when fixing the tmux layout
2023-06-10 18:05:13 -07:00
4202d3c1dc
Adjust cli.ask() log formatting
2023-06-10 17:58:23 -07:00
f2ab06374b
Revert "Suppress warnings when using tail in tmux"
...
This reverts commit 3334638a2c .
2023-06-10 17:55:57 -07:00
a2c41fbaf2
Fix destination selection and title pane handling
2023-06-04 19:24:27 -07:00
7e6cfa1896
Add more type hints to ddrescue-tui
2023-06-04 18:54:16 -07:00
13e14e6734
Avoid dangerous default value
2023-06-04 18:13:18 -07:00
45a7f84e19
Restrict journal messages in ddrescue-tui
2023-06-04 18:11:14 -07:00
86f748c599
Clear ddrescue pane when resizing
...
This replaces the clear every 30s/60s/etc. It's only enabled while
ddrescue is running to prevent clearing warning messages if printed.
2023-06-04 18:08:59 -07:00
becc564269
Use new TUI layout in ddrescue-tui
2023-06-04 17:43:02 -07:00
7ab6ccbd36
Avoid setting percent to None in tui.py
2023-06-03 18:58:46 -07:00
8e7d202c32
Add reset_title_pane() to tui
2023-06-03 18:58:29 -07:00
05de5c7294
Add type hints to BlockPair
2023-06-03 18:07:30 -07:00
fc2b90a2c0
Raise CPU_CRITICAL_TEMP to 100*C
2023-05-29 17:48:24 -07:00
de7993c39c
Fix type hint for get_known_disk_attributes()
2023-05-29 17:47:58 -07:00
dbb606601d
Drop test() function
2023-05-29 17:32:05 -07:00
1dc22d5991
Remove unused section in layout_needs_fixed()
2023-05-29 17:31:03 -07:00
f50ea711e6
Refactor wk.clone.ddrescue.get_object()
2023-05-29 17:29:02 -07:00
2cce572acf
Drop OrderedDict usage in favor of standard dicts
...
Python 3.7+ guarantees insertion order is preserved and we (currently)
require 3.10+
2023-05-29 17:25:48 -07:00
a253fdc80f
Add type hints to auto_repairs and auto_setup
2023-05-29 17:09:32 -07:00
386a8b7000
Merge branch 'type-hinting' into dev
2023-05-29 16:26:16 -07:00
a5eb64a055
Add type hints to class instance variables
2023-05-29 16:25:37 -07:00
c009ab2d41
Add even more type hints to function arguments
2023-05-29 16:04:58 -07:00
1bfdb14be4
Refactor color_string()
2023-05-29 14:49:21 -07:00
bf9d994675
Add more type hints to function arguments
2023-05-29 14:01:29 -07:00
f654052f1d
Fix typo
2023-05-29 13:42:45 -07:00
12326a5e2c
Use new Union syntax
...
This bumps the minimum Python version to 3.10
2023-05-29 12:35:40 -07:00
171cd0019e
Add type hints to function arguments
2023-05-28 20:50:38 -07:00
62edaac25a
Add type hints to functions
2023-05-28 20:09:54 -07:00
60d08a189d
Merge branch 'dev' into type-hinting
2023-05-27 21:15:23 -07:00
69832eda5d
Remove duplicate function wk.log.get_log_filepath
2023-05-27 21:12:27 -07:00
534f258846
Add some type hints
2023-05-27 20:05:03 -07:00
0126452bf1
Merge branch 'ui-split' into dev
2023-05-27 19:50:49 -07:00
3334638a2c
Suppress warnings when using tail in tmux
2023-05-27 19:48:18 -07:00
cb012423bb
Refactor hardware diagnostics to use new TUI
2023-05-27 19:47:26 -07:00
4c76e59238
Add get_window_size()
2023-05-27 19:22:24 -07:00
ba69773fba
Clear history when clearing a pane
...
Helpful if the pane is resized to prevent cleared lines from returning.
2023-05-27 19:08:48 -07:00
f19c4b2422
Update self-test data before checking result
...
Addresses #209
2023-05-22 20:59:10 -07:00
59d89575ed
Refactor SMART self-test checks
...
- Preserve TimedOut status
- Adds last self-test result to notes (if present and result is unknown)
2023-05-21 14:52:28 -07:00
9678f143c7
Misc
2023-05-14 21:59:34 -07:00
7aafcd7c01
Update add_title_pane() to match set_title()
2023-04-09 16:33:11 -07:00
b834be9f00
Close all panes atexit
2023-04-09 16:32:13 -07:00
ba3bf480f7
BREAKING Add wk/ui/tui.py
2023-04-09 15:59:34 -07:00
f9bcd534d4
Move ansi code into wk/ui
2023-04-08 19:20:22 -07:00
d302be2d7c
Use prompt_toolkit for CLI input
2023-04-08 16:26:51 -07:00
13fc64e6ab
Remove unneeded wk.ui calls
2023-04-08 14:16:41 -07:00
44ddb3c258
Replace clear_screen() function
...
This is now part of wk.ansi and is fully cross-compatible.
2023-04-08 12:45:45 -07:00
95d7159414
Move ANSI color escape sections to their own file
2023-04-02 20:46:54 -07:00
03a143488c
Adjust ui imports and calls
2023-04-02 20:12:18 -07:00
6efc970374
Move tmux sections into wk.ui
2023-04-01 22:36:59 -07:00
e3ebc2d1b8
Merge branch 'dev' into ui-split
2023-04-01 22:28:32 -07:00