Remove deprecated functions and add comments
This commit is contained in:
parent
58b39dbb6c
commit
0f9b504036
@ -95,6 +95,6 @@ func (ip *InputProcessor) Run(ctx context.Context) (err error) {
|
|||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
time.Sleep(10 * time.Millisecond)
|
time.Sleep(10 * time.Millisecond) // FIXME: I wanna remove this
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,8 @@ import (
|
|||||||
// Output is converted from VT100 escape sequences by mattn/go-colorable.
|
// Output is converted from VT100 escape sequences by mattn/go-colorable.
|
||||||
type WindowsWriter struct {
|
type WindowsWriter struct {
|
||||||
VT100Writer
|
VT100Writer
|
||||||
tty *tty.TTY
|
tty *tty.TTY
|
||||||
writer io.Writer
|
writer io.Writer
|
||||||
sigwinch chan WinSize
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flush to flush buffer
|
// Flush to flush buffer
|
||||||
|
@ -261,6 +261,8 @@ func (p *Prompt) Input() string {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case <-sigquit:
|
case <-sigquit:
|
||||||
|
close(sigquit)
|
||||||
|
signal.Stop(sigquit)
|
||||||
cancel()
|
cancel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,6 +90,7 @@ type Renderer struct {
|
|||||||
Render chan RenderRequest
|
Render chan RenderRequest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run to start worker goroutine for rendering.
|
||||||
func (r *Renderer) Run(ctx context.Context) {
|
func (r *Renderer) Run(ctx context.Context) {
|
||||||
r.SetUp()
|
r.SetUp()
|
||||||
defer r.TearDown()
|
defer r.TearDown()
|
||||||
@ -116,6 +117,7 @@ func (r *Renderer) Run(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RenderRequest is used when requesting render
|
||||||
type RenderRequest struct {
|
type RenderRequest struct {
|
||||||
buffer *Buffer
|
buffer *Buffer
|
||||||
completion *CompletionManager
|
completion *CompletionManager
|
||||||
|
Loading…
Reference in New Issue
Block a user