mirror of
https://github.com/byReqz/go-etcher.git
synced 2024-11-22 06:51:15 +00:00
make bar smaller to prevent newlines on small terminals
This commit is contained in:
parent
8454440711
commit
7538896d21
2
main.go
2
main.go
@ -64,7 +64,7 @@ func WriteImage(image *os.File, target *os.File, size int64) (int64, error) {
|
|||||||
progressbar.OptionSetWriter(os.Stderr),
|
progressbar.OptionSetWriter(os.Stderr),
|
||||||
// progressbar.OptionEnableColorCodes(true),
|
// progressbar.OptionEnableColorCodes(true),
|
||||||
progressbar.OptionShowBytes(true),
|
progressbar.OptionShowBytes(true),
|
||||||
progressbar.OptionSetWidth(50),
|
progressbar.OptionSetWidth(25),
|
||||||
progressbar.OptionSetDescription("Writing image file..."),
|
progressbar.OptionSetDescription("Writing image file..."),
|
||||||
progressbar.OptionSetTheme(progressbar.Theme{
|
progressbar.OptionSetTheme(progressbar.Theme{
|
||||||
Saucer: "=",
|
Saucer: "=",
|
||||||
|
Loading…
Reference in New Issue
Block a user