Skip to content

Commit

Permalink
handle resize
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
  • Loading branch information
jessfraz committed Jul 14, 2018
1 parent d41b1f3 commit 268e5e6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ func main() {

// Handle resize
termui.Handle("/sys/wnd/resize", func(e termui.Event) {
termui.Body.Width = termui.TermWidth()
termui.Body.Align()
termui.Clear()
termui.Render(termui.Body)
doWidgets()
})

// Update on an interval
Expand Down

0 comments on commit 268e5e6

Please sign in to comment.