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

History #6

Open
thejpster opened this issue Sep 21, 2019 · 1 comment
Open

History #6

thejpster opened this issue Sep 21, 2019 · 1 comment

Comments

@thejpster
Copy link
Member

Should implement history - as much as fits in the given buffer (including the current line, if anything has been entered).

@thejpster
Copy link
Member Author

So, we treat the byte slice as a ring buffer. We put a special delimiter in in-between each command. This lets us wind backwards and find the previous command when a user presses up. Once the buffer is full, we delete whole commands at a time from the trail to make space.

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

No branches or pull requests

1 participant