| skipped 229 lines |
230 | 230 | | |
231 | 231 | | #( Options |
232 | 232 | | lse_color=true |
| 233 | + | lse_alt_color=false |
233 | 234 | | lse_interactive=true |
234 | 235 | | lse_proc_time=60 |
235 | 236 | | lse_level=0 #Valid levels 0:default, 1:interesting, 2:all |
| skipped 11 lines |
247 | 248 | | printf "%b" "$@" | sed 's/\x1B\[[0-9;]\+[A-Za-z]//g' |
248 | 249 | | fi |
249 | 250 | | } |
| 251 | + | lse_recolor() { |
| 252 | + | o_white="$white" |
| 253 | + | o_lyellow="$lyellow" |
| 254 | + | o_grey="$grey" |
| 255 | + | o_lred="$lred" |
| 256 | + | o_lgreen="$lgreen" |
| 257 | + | o_lcyan="$lcyan" |
| 258 | + | |
| 259 | + | white="$o_grey" |
| 260 | + | lyellow="$o_lred" |
| 261 | + | grey="$lgrey" |
| 262 | + | lred="$red" |
| 263 | + | lgreen="$b_lgreen$black" |
| 264 | + | lcyan="$cyan" |
| 265 | + | } |
250 | 266 | | lse_error() { |
251 | 267 | | cecho "${red}ERROR: ${reset}$*\n" >&2 |
252 | 268 | | } |
| skipped 22 lines |
275 | 291 | | echo |
276 | 292 | | echo " OPTIONS" |
277 | 293 | | echo " -c Disable color" |
| 294 | + | echo " -C Use alternative color scheme" |
278 | 295 | | echo " -i Non interactive mode" |
279 | 296 | | echo " -h This help" |
280 | 297 | | echo " -l LEVEL Output verbosity level" |
| skipped 127 lines |
408 | 425 | | fi |
409 | 426 | | |
410 | 427 | | if [ -z "$output" ]; then |
411 | | - | cecho "${grey} nope${reset}\n" |
| 428 | + | cecho " ${grey}nope${reset}\n" |
412 | 429 | | return 1 |
413 | 430 | | else |
414 | 431 | | lse_passed_tests="$lse_passed_tests $id" |
| skipped 886 lines |
1301 | 1318 | | ##) |
1302 | 1319 | | |
1303 | 1320 | | #( Main |
1304 | | - | while getopts "hcil:e:p:s:S" option; do |
| 1321 | + | while getopts "hcCil:e:p:s:S" option; do |
1305 | 1322 | | case "${option}" in |
1306 | 1323 | | c) lse_color=false; lse_grep_opts='--color=never';; |
| 1324 | + | C) lse_alt_color=true;; |
1307 | 1325 | | e) lse_exclude_paths "${OPTARG}";; |
1308 | 1326 | | i) lse_interactive=false;; |
1309 | 1327 | | l) lse_set_level "${OPTARG}";; |
| skipped 7 lines |
1317 | 1335 | | |
1318 | 1336 | | #trap to exec on SIGINT |
1319 | 1337 | | trap "lse_exit 1" 2 |
| 1338 | + | |
| 1339 | + | # use alternative color scheme |
| 1340 | + | $lse_alt_color && lse_recolor |
1320 | 1341 | | |
1321 | 1342 | | lse_request_information |
1322 | 1343 | | lse_show_info |
| skipped 20 lines |