Daisuke Maki
515e13fbf3
Propagate screen Init error on resume
2026-02-18 09:30:05 +09:00
Daisuke Maki
46331edcfd
Check for far wider range of things in lint
2026-02-18 07:49:40 +09:00
Daisuke Maki
681d034bc4
fix off-by-one drawing tabs
2026-02-17 20:09:27 +09:00
Daisuke Maki
2f0d21d047
move the close outside
2026-02-17 07:49:27 +09:00
Daisuke Maki
cfc3736e8e
log pollevent errors
2026-02-17 07:38:56 +09:00
Daisuke Maki
6ecb5c777d
remove PostInit
2026-02-17 07:04:32 +09:00
Daisuke Maki
a1d7596b1a
Replace Termbox (name references) with Tcell
2026-02-16 23:50:19 +09:00
Daisuke Maki
cdb31988d8
Fix possible goroutine leak during suspend
2026-02-16 22:55:20 +09:00
Daisuke Maki
91339e96f9
Do away with pkg/errors
2026-02-16 22:06:21 +09:00
Daisuke Maki
8710f98b1f
Remove the possibility of Resume() deadlocking
2026-02-16 21:35:56 +09:00
Daisuke Maki
49f7153598
Add ANSI color support
2026-02-16 20:06:53 +09:00
Daisuke Maki
a35076da6f
Fix #455
2026-02-15 18:13:54 +09:00
Daisuke Maki
0ef5cdb83d
Fix #529
2026-02-15 08:44:21 +09:00
Yasuhiro Matsumoto
c1ffd8b128
go fmt ./...
2026-02-14 17:36:53 +09:00
Daisuke Maki
0531cfd20a
Properly reset screen
2026-02-14 09:13:18 +09:00
Daisuke Maki
7d42de7860
actual migration
2026-02-13 19:48:39 +09:00
Daisuke Maki
e9c5582ba1
Initial pass
2026-02-13 12:35:06 +09:00
narugit
a7cd43ff22
Apply 256color configuration
2020-06-06 21:38:11 +09:00
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