Skip to content

Send submit character in separate write to simulate human input#4

Open
timofurrer wants to merge 2 commits intosurvivorbat:mainfrom
timofurrer:send-submit-char-separately
Open

Send submit character in separate write to simulate human input#4
timofurrer wants to merge 2 commits intosurvivorbat:mainfrom
timofurrer:send-submit-char-separately

Conversation

@timofurrer
Copy link
Contributor

Based on https://dr-knz.net/bubbletea-control-inversion.html

A future iteration of this should be to individually send "keystrokes", that is, for e.g. choosing the left confirmation button in a confirm, first send the left arrow key, then the submit button. If multiple are required, do it for multiple. I think this mostly is required for control sequences, not so much text.

Refs #3

Based on https://dr-knz.net/bubbletea-control-inversion.html

A future iteration of this should be to individually send "keystrokes",
that is, for e.g. choosing the left confirmation button in a confirm,
first send the left arrow key, then the submit button. If multiple are
required, do it for multiple. I think this mostly is required for
control sequences, not so much text.

Refs survivorbat#3
@survivorbat survivorbat self-requested a review September 28, 2025 18:25
@survivorbat survivorbat self-assigned this Sep 28, 2025
Copy link
Owner

@survivorbat survivorbat left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@survivorbat survivorbat linked an issue Sep 28, 2025 that may be closed by this pull request
Dummy update to trigger github status checks ¯\_(ツ)_/¯
@survivorbat
Copy link
Owner

Hey @timofurrer! I introduced github actions to the repo. Could you check the errors in the runs? Had to make a dummy commit to get the new status checks to actually run :)

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.

Support multiple forms with single responder

2 participants