github.com/system-transparency/u-root@v6.0.1-0.20190919065413-ed07a650de4c+incompatible/cmds/core/elvish/edit/eddefs/mode.go (about)

     1  package eddefs
     2  
     3  import (
     4  	"github.com/u-root/u-root/cmds/core/elvish/edit/ui"
     5  	"github.com/u-root/u-root/cmds/core/elvish/eval"
     6  )
     7  
     8  // Mode is an editor mode.
     9  type Mode interface {
    10  	ModeLine() ui.Renderer
    11  	Binding(ui.Key) eval.Callable
    12  	Teardown()
    13  }