mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-26 13:48:53 +08:00
all: gofmt
Run standard gofmt command on project root. - go version go1.10.3 darwin/amd64 Signed-off-by: ia <isaac.ardis@gmail.com>
This commit is contained in:
parent
2efc922424
commit
de7e78efa4
@ -17,25 +17,25 @@
|
||||
package tcell
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"sync"
|
||||
"syscall"
|
||||
"unicode/utf16"
|
||||
"unsafe"
|
||||
"errors"
|
||||
)
|
||||
|
||||
type cScreen struct {
|
||||
in syscall.Handle
|
||||
out syscall.Handle
|
||||
in syscall.Handle
|
||||
out syscall.Handle
|
||||
cancelflag syscall.Handle
|
||||
scandone chan struct{}
|
||||
evch chan Event
|
||||
quit chan struct{}
|
||||
curx int
|
||||
cury int
|
||||
style Style
|
||||
clear bool
|
||||
fini bool
|
||||
scandone chan struct{}
|
||||
evch chan Event
|
||||
quit chan struct{}
|
||||
curx int
|
||||
cury int
|
||||
style Style
|
||||
clear bool
|
||||
fini bool
|
||||
|
||||
w int
|
||||
h int
|
||||
@ -117,7 +117,7 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
w32Infinite = ^uintptr(0)
|
||||
w32Infinite = ^uintptr(0)
|
||||
w32WaitObject0 = uintptr(0)
|
||||
)
|
||||
|
||||
@ -530,7 +530,7 @@ func (s *cScreen) getConsoleInput() error {
|
||||
uintptr(pWaitObjects),
|
||||
uintptr(0),
|
||||
w32Infinite)
|
||||
// WaitForMultipleObjects returns WAIT_OBJECT_0 + the index.
|
||||
// WaitForMultipleObjects returns WAIT_OBJECT_0 + the index.
|
||||
switch rv {
|
||||
case w32WaitObject0: // s.cancelFlag
|
||||
return errors.New("cancelled")
|
||||
|
@ -385,8 +385,8 @@ outer:
|
||||
func (t *tScreen) Fini() {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
|
||||
ti := t.ti
|
||||
|
||||
ti := t.ti
|
||||
t.cells.Resize(0, 0)
|
||||
t.TPuts(ti.ShowCursor)
|
||||
t.TPuts(ti.AttrOff)
|
||||
@ -405,7 +405,7 @@ func (t *tScreen) Fini() {
|
||||
default:
|
||||
close(t.quit)
|
||||
}
|
||||
|
||||
|
||||
t.termioFini()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user