Skip to content

Introduce atomic runtime option updates: updateOptions() - #7

Open
nickesc wants to merge 10 commits into
devfrom
feature/atomic-option-updates
Open

Introduce atomic runtime option updates: updateOptions()#7
nickesc wants to merge 10 commits into
devfrom
feature/atomic-option-updates

Conversation

@nickesc

@nickesc nickesc commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Adds a controlled, atomic way to update terminal configuration at runtime; breaking change that prevents consumers from mutating options individually or directly.

  • Replaces the mutable TermOptions class and TermOptionsConfig interface with a readonly TermOptions interface
  • Adds Terminal.updateOptions(partialOptions) method, which merges updates into a frozen options snapshot and replaces it atomically
  • Ensures prompt and preprompt changes preserve unfinished input for initialized terminals and cause a redraw with the new prompt

closes #4

@nickesc nickesc self-assigned this Jul 15, 2026
@nickesc nickesc added the enhancement New feature or request label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant