X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=82d234f825ef5e0f84efd952434c5cdaf0ac242d;hb=e86b781eabdb7f65f121295630faf5005547be28;hp=547db313e58e5b05cabadcbc57827a9070257b73;hpb=fdc8e8a0089fc457478464f8cbe4b89a813b27fc;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 547db31..82d234f 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -160,6 +160,9 @@ RC_QUIET_STDOUT="no" RC_VERBOSE="${RC_VERBOSE:-no}" # Should we use color? +if [ -r /proc/cmdline ] ; then + grep -q ' nocolor' /proc/cmdline && RC_NOCOLOR='yes' +fi RC_NOCOLOR="${RC_NOCOLOR:-no}" # Can the terminal handle endcols? RC_ENDCOL="yes" @@ -768,7 +771,7 @@ else fi if [[ ${RC_ENDCOL} == yes ]]; then - ENDCOL=$'\e[A\e['$(( COLS - 7 ))'G' + ENDCOL=$'\e[A\e['$(( COLS - 8 ))'G' else ENDCOL='' fi