mirror of
				https://github.com/byReqz/go-etcher.git
				synced 2025-11-04 00:31:31 +00:00 
			
		
		
		
	make bar smaller to prevent newlines on small terminals
This commit is contained in:
		
							
								
								
									
										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:        "=",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user