Denilson Sá avatar Denilson Sá committed 231e2ad

prettyping.sh: Bugfix regarding interaction between --nocolor and --multicolor.

Comments (0)

Files changed (1)

 prettyping parameters:
   --[no]color      Enable/disable color output. (default: enabled)
   --[no]multicolor Enable/disable multi-color unicode output. Has no effect if
-                     unicode is disabled. (default: enabled)
+                     either color or unicode is disabled. (default: enabled)
   --[no]unicode    Enable/disable unicode characters. (default: enabled)
   --last <n>       Use the last "n" pings at the statistics line. (default: 25)
   --columns <n>    Override auto-detection of terminal dimensions.
 		BLOCK[21] = ESC_RED_ON_YELLOW "▆"
 		BLOCK[22] = ESC_RED_ON_YELLOW "▇"
 		BLOCK[23] = ESC_RED_ON_YELLOW "█"
-		if( '"${USE_MULTICOLOR}"' )
+		if( '"${USE_MULTICOLOR}"' && '"${USE_COLOR}"' )
 		{
 			# Multi-color version:
 			BLOCK_LEN = 24
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.