We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa15200 + cdfbdd9 commit 2a56c66Copy full SHA for 2a56c66
cmd/gosr/main.go
@@ -1,6 +1,7 @@
1
package main
2
3
import (
4
+ "bufio"
5
"flag"
6
"fmt"
7
"image"
@@ -79,7 +80,10 @@ func render(filename string) error {
79
80
}
81
img = tmp
82
- enc := sixel.NewEncoder(os.Stdout)
83
+ buf := bufio.NewWriter(os.Stdout)
84
+ defer buf.Flush()
85
+
86
+ enc := sixel.NewEncoder(buf)
87
enc.Dither = true
88
return enc.Encode(img)
89
0 commit comments