Skip to content
Myr

Code cleanup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent b9d1556 · Browse files · 1 file+3 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−9 removed

  • other:+3 added−9 removed

1 file+3 added−9 removed

modified:src/tui/light_unix.go+3 added-9 removed
31 unmodified lines
32func (r *LightRenderer) fd() int {33 return int(r.ttyin.Fd())34}3536func (r *LightRenderer) initPlatform() error {37 fd := r.fd()38 origState, err := term.GetState(fd)39 if err != nil {40 return err41 }42 r.origState = origState43 term.MakeRaw(fd)44 return nil36func (r *LightRenderer) initPlatform() (err error) {37 r.origState, err = term.MakeRaw(r.fd())38 return err39}4041func (r *LightRenderer) closePlatform() {42 r.ttyout.Close()
83 unmodified lines