diff options
Diffstat (limited to 'src/tui/light_unix.go')
-rw-r--r-- | src/tui/light_unix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui/light_unix.go b/src/tui/light_unix.go index 4ca847b4..46188869 100644 --- a/src/tui/light_unix.go +++ b/src/tui/light_unix.go @@ -110,10 +110,10 @@ func (r *LightRenderer) getch(nonblock bool) (int, bool) { return int(b[0]), true } -func (r *LightRenderer) Size() (termSize, error) { +func (r *LightRenderer) Size() TermSize { ws, err := unix.IoctlGetWinsize(int(r.ttyin.Fd()), unix.TIOCGWINSZ) if err != nil { - return termSize{}, err + return TermSize{} } - return termSize{int(ws.Row), int(ws.Col), int(ws.Xpixel), int(ws.Ypixel)}, nil + return TermSize{int(ws.Row), int(ws.Col), int(ws.Xpixel), int(ws.Ypixel)} } |