WriteHistory writes scrollback history to w. Returns the number of lines successfully written, and any write error.
Unlike the rest of liner's API, WriteHistory is safe to call from another goroutine while Prompt is in progress. This exception is to facilitate the saving of the history buffer during an unexpected exit (for example, due to Ctrl-C being invoked)
WriteHistory is referenced in 1 repositorygithub.com/siddontang/ledisdb
- 1 reference in cmd/ledis-cli/main.go