Skip to content

Tags: Nerdmaster/terminal

Tags

v0.13

Toggle v0.13's commit message
Don't force CTRL+D to exit

Closes #5

v0.12.1

Toggle v0.12.1's commit message
Make "Alt+[" more readable

v0.12.0

Toggle v0.12.0's commit message
Prompt: Don't let cursor go beyond end of input

v0.11.1

Toggle v0.11.1's commit message
Add a clear end-of-input indicator in the example

v0.11.0

Toggle v0.11.0's commit message
Prompt: reduce memory allocations¹ to zero²!

1. Explicit memory allocations in the writeChanges function

2. When looked at mathematically, the ratio of allocations per call to
writeChanges approaches zero as number of calls approaches infinity

Git commits can have fine print, too!

...

This commit removes the system which previously would always allocate a
slice of runes every time a keystroke would modify the output buffer,
thus resulting in far fewer total memory allocations.  There are
probably a million other places that could be improved, but this one was
an easy fix.

v0.10.1

Toggle v0.10.1's commit message
Prompt: don't erase line on enter

Fixes bug where prompt would draw the changes immediately after the
ENTER key was hit, causing the line to be lost since Reader's processing
of the ENTER key was to clear the input and return the line

v0.10.0

Toggle v0.10.0's commit message
Document new stuff

Adds explanation of terminal.Prompt as well as AfterKeypress, which is
now part of terminal.Prompt's example

v0.9.0

Toggle v0.9.0's commit message
Fix headers in README