Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a little support for console history. #115

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Introduce a little support for console history. #115

merged 1 commit into from
Jun 17, 2024

Conversation

skx
Copy link
Owner

@skx skx commented Jun 17, 2024

This pull-request adds some minimal improvements to our text-line input:

Ctrl-N and Ctrl-P navigate through prior history, and Escape erases any input in-progress. This is short of full history, with searches and more, but better than nothing.

NOTE: History is not persisted to disk.

Using this support long commands in the CCP work as expected, but I guess all input reading using the "Get Line" rather than the "Get Character" will work :)

This pull-request adds some minimal improvements to our text-line
input:

Ctrl-N and Ctrl-P navigate through prior history, and Escape erases
any input in-progress.  This is short of full history, with searches
and more, but better than nothing.

Using this support long commands in the CCP work as expected, but
I guess all input reading using the "Get Line" rather than the
"Get Character" will work :)
@skx skx merged commit e803b23 into master Jun 17, 2024
2 checks passed
@skx skx deleted the history branch June 17, 2024 08:47
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