Commit graph

22 commits

Author SHA1 Message Date
Daisuke Maki d02bb4122c Workaround glide being stubborn wrt lestrrat/go-pdebug -> lestrrat-go/pdebug 2018-10-25 09:50:16 +09:00
Daisuke Maki b60d067747 Call SetCursor when drawing the prompt 2018-03-30 10:07:42 +09:00
Daisuke Maki 8069f8eb2f Make Resume a blocking operation
This is required because we need to make sure we know termbox
has been initialized before attempting to make another drawing
operation.

Notably, without proper termbox initialization, screen.Size() returns a
bogus value, and we miss the line location where we left off to execute
the external command specified by --exec
2017-03-16 23:16:12 +09:00
Daisuke Maki ab72a5521f Tweak timing for when to initialize the screen and other components
We should wait to initialize the screen until we have something
coming in from the source: otherwise multiple peograms chained via
pipes would compete for the same terminal resource, and things may
go southward.

But then there are components that rely on the screen being intialized,
so we let them wait as well.
2017-03-03 23:23:07 +09:00
Daisuke Maki 2aafac08c1 remove debug statement 2017-03-03 16:14:00 +09:00
Daisuke Maki a78051dcbe Properly suspend termbox before executing external command
This makes sure that termbox does not inadvertantly steal our
commands while executing external commands, and also makes sure
we explicitly reset the screen.

Also, make sure we use a temporary selection.
2017-03-03 13:53:41 +09:00
Daisuke Maki c12cd97d29 Use pdebug instead of trace 2016-06-18 17:40:33 +09:00
Daisuke Maki 39eb717c6e Wrap errors 2016-06-18 17:40:33 +09:00
Daisuke Maki 22d942b220 remove unused code 2016-06-18 17:40:33 +09:00
Daisuke Maki 509685f77a Actually invoke SetCell from dummyScreen.Print 2016-06-18 17:40:33 +09:00
Daisuke Maki 3e9476676e Make screen a member of Peco struct, not a global 2016-06-18 17:40:33 +09:00
Daisuke Maki 39d36c41b8 back to being able to draw the screen 2016-06-18 17:39:02 +09:00
Daisuke Maki d0eeecee2e refactor screen so we can test 2015-09-28 22:08:21 +09:00
Daisuke Maki 586c36a0e7 Let us being the great refactor
* Move internal stuff to internal
* Properly use conditional compilation to detect Windows
* Move type declarations to one location (except for a few places still)
2015-09-28 21:39:43 +09:00
Syohei YOSHIDA 1e9e1886a2 Correct misspellings in documents 2015-04-22 19:16:46 +09:00
Daisuke Maki 64fc4d12fd some linting 2015-03-17 15:37:53 +09:00
Daisuke Maki e8915c03cb More refactoring for testing 2015-03-17 15:37:48 +09:00
Daisuke Maki 4594f2d26d newMutex, sync.Locker 2014-10-14 16:44:33 +09:00
Daisuke Maki d2c601512f protect termbox stuff 2014-10-14 13:14:01 +09:00
Daisuke Maki 11dfa1b426 Refactor query and caretPos 2014-08-27 15:26:48 +09:00
Daisuke Maki 3b2b1fe07a Because I love @mattn 2014-08-27 14:17:13 +09:00
Daisuke Maki a62bc068b2 Rip out termbox functions from main code so we can assigh a dummy later
in tests
2014-08-21 21:12:48 +09:00