menu icon indicating copy to clipboard operation
menu copied to clipboard

History

Open thejpster opened this issue 6 years ago • 1 comments

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

thejpster avatar Sep 21 '19 10:09 thejpster

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.

thejpster avatar Sep 21 '19 10:09 thejpster