Unify TUI input editing in Tui::InputField - #135
Merged
Merged
Conversation
Steal try-cli's editor keys (arrows, Ctrl-U, Delete) into one Spinel-safe widget used by search, rename, graduate, and delete prompts, with emergency terminal restore on crash.
This was referenced Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standalone TUI cleanup, based on
main— not stacked on the Spinel PRs.Steal from tobi/try-cli: one real input widget instead of four copy-pasted editors. try-cli's
tui_push/tui_popis an ANSI style stack; Ruby's Screen/Section/Line layout stays as-is. This only ports the input layer.Tui::InputField#handle_keyused by search, rename, graduate, and the YES prompt#to_sunchanged (existing screenshots still match)at_exitrestore if we crash while the TUI is upMRI:
ruby -cclean,rake unit131/131,spec/tests/runner.sh ./try.rb399/399 (original 397 plus two keyboard tests).Supersedes the TUI half of #134 (that one was stacked on Spinel). The Spinel stack stays #130 → #131 → #133.