elvish/eval/editor.go

12 lines
251 B
Go
Raw Normal View History

2016-09-12 01:17:59 +08:00
package eval
import "sync"
// Editor is the interface that the line editor has to satisfy. It is needed so
// that this package does not depend on the edit package.
type Editor interface {
Active() bool
ActiveMutex() *sync.Mutex
Notify(string)
}