Commit graph

6 commits

Author SHA1 Message Date
Daisuke Maki 8c1bcab562 more golint 2014-07-12 16:22:08 +09:00
Daisuke Maki 4c7616b515 Delay the terminal initialization until incoming buffer is ready
This change fixes #144 by delaying all the terminal initialization
until there's something coming in from the standard input.

Without this, for example, a succesive chain of commands that expect to
use stdin will fail, because peco might accidentally grab the stdin
under the hood. With this change, peco is forced to wait to do any
terminal related stuff until some output has been spewed by the
previous command (which is most likely when the command is ready to
give up the control of the terminal), so things work again.
2014-07-07 09:44:35 +09:00
Daisuke Maki f80823bf2b docs 2014-07-03 16:45:01 +09:00
Daisuke Maki 48aad06a96 Protect modification on b.lines 2014-07-02 00:46:03 +09:00
Daisuke Maki 9660496d99 Implement -b / --buffer-size
This adds -b / --buffer-size to the peco binary. It basically limits the
maximum number of lines that peco will hold at any given time, allowing
you to keep peco running for a long time, even when you are receiving an
infinite stream of lines.

By default the buffer size is unlimited. If --buffer-size is specified,
lines will be thrown away in FIFO order
2014-07-02 00:32:08 +09:00
Daisuke Maki 6d6c57c1ce Implement an asynchronous buffer reader
should fix #113
2014-07-01 10:16:10 +09:00