Skip to content

feat(tui): ink 7, row inspection, mouse, cancel - #82

Merged
damusix merged 1 commit into
masterfrom
next
Aug 22, 2026
Merged

feat(tui): ink 7, row inspection, mouse, cancel#82
damusix merged 1 commit into
masterfrom
next

Conversation

@damusix

@damusix damusix commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

The Ink 7 upgrade is what made the rest possible: useWindowSize replaced the hardcoded row counts, alternateScreen let the shell own the window, and measureElement gained the coordinates a click needs.

TextInput is ours now because @inkjs/ui does not publish the hooks to rebuild its handler, and a mouse report reaches every useInput handler — clicking mid-edit typed the escape sequence into the field.

Cancelling is honest per dialect: postgres and mysql ask the server to stop, mssql and sqlite can only stop waiting, and the wording differs.

The Ink 7 upgrade is what made the rest possible: useWindowSize replaced
the hardcoded row counts, alternateScreen let the shell own the window,
and measureElement gained the coordinates a click needs.

TextInput is ours now because @inkjs/ui does not publish the hooks to
rebuild its handler, and a mouse report reaches every useInput handler —
clicking mid-edit typed the escape sequence into the field.

Cancelling is honest per dialect: postgres and mysql ask the server to
stop, mssql and sqlite can only stop waiting, and the wording differs.
@damusix
damusix merged commit bab7dfc into master Aug 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant