Skip to content

new_installer_*.py: terminal state simplifications#52535

Merged
haampie merged 1 commit into
developfrom
hs/new-installer/delete-dead-windows-overrides
Jun 11, 2026
Merged

new_installer_*.py: terminal state simplifications#52535
haampie merged 1 commit into
developfrom
hs/new-installer/delete-dead-windows-overrides

Conversation

@haampie

@haampie haampie commented Jun 11, 2026

Copy link
Copy Markdown
Member

enter_background, handle_continue, and should_enter_foreground
exist for POSIX job control: the first two are only reachable from the
SIGTSTP handler, and the third only applies while headless, which
cannot be triggered on Windows.

The abstract methods forced WindowsTerminalState to implement dead
code. Give them no-op defaults and drop the Windows overrides, along
with the empty POSIX teardown_output.

`enter_background`, `handle_continue`, and `should_enter_foreground`
exist for POSIX job control: the first two are only reachable from the
`SIGTSTP` handler, and the third only applies while headless, which
cannot be triggered on Windows.

The abstract methods forced `WindowsTerminalState` to implement dead
code. Give them no-op defaults and drop the Windows overrides, along
with the empty POSIX teardown_output.

Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>

@johnwparent johnwparent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, LGTM

Will need this one day for Windows, but today is not that day (and the windows code is cruft until then) and this design is cleaner regardless.

@haampie haampie merged commit 22739b4 into develop Jun 11, 2026
33 of 34 checks passed
@haampie haampie deleted the hs/new-installer/delete-dead-windows-overrides branch June 11, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants