| commit | 6cb1bbd1a001aa032786cfd3e90b8c1510a6621a | [log] [tgz] |
|---|---|---|
| author | Yasuhiro Matsumoto <[email protected]> | Mon Feb 19 16:04:51 2018 |
| committer | Yasuhiro Matsumoto <[email protected]> | Mon Feb 19 16:04:51 2018 |
| tree | a3c2e69b4c85ffccdd77b06d3321325fe03ed045 | |
| parent | 70309ab5d2ae30846ef472a8c49fa0c8f2a450ef [diff] |
fix example
diff --git a/_example/simple.go b/_example/simple.go index 6aa162d..c4952f4 100644 --- a/_example/simple.go +++ b/_example/simple.go
@@ -16,6 +16,12 @@ } defer t.Close() + go func() { + for ws := range t.SIGWINCH() { + fmt.Println("Resized", ws.W, ws.H) + } + }() + fmt.Println("Hit any key") for { r, err := t.ReadRune()