search for: setaf

Displaying 7 results from an estimated 7 matches for "setaf".

Did you mean: seta
2020 Sep 29
3
No Samba NT DOMAIN Name found exitting now...
...ch tput)" > if [ -z "${SETTPUT}" ]; then > echo "program tput not found, installing it now.. please wait" > apt-get update > /dev/null > apt-get install -y --no-install-recommends ncurses-bin > /dev/null > fi > > RED="$(${SETTPUT} setaf 1)" > NORMAL="$(${SETTPUT} sgr0)" > GREEN="$(${SETTPUT} setaf 2)" > YELLOW="$(${SETTPUT} setaf 3)" > UNDERLINE="$(${SETTPUT} smul)" > WHITE="$(${SETTPUT} setaf 7)" > BOLD="$(${SETTPUT} bold)" > > message() { &g...
2011 Apr 19
4
/etc/bashrc help!
...# you are root, set red colour prompt echo "###############################################" echo "### You are now working as ROOT. ###" echo "### Pay attention to what you type. ###" echo "###############################################" PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]" else # normal echo echo " ###########################################################" echo "Welcome $(whoami), here's something to start your day with:" echo echo `sh /etc/lines.sh /etc/quotes.txt` echo " #####################...
2020 Sep 29
0
No Samba NT DOMAIN Name found exitting now...
...-z "${SETTPUT}" ]; then >> echo "program tput not found, installing it now.. please wait" >> apt-get update > /dev/null >> apt-get install -y --no-install-recommends ncurses-bin > /dev/null >> fi >> >> RED="$(${SETTPUT} setaf 1)" >> NORMAL="$(${SETTPUT} sgr0)" >> GREEN="$(${SETTPUT} setaf 2)" >> YELLOW="$(${SETTPUT} setaf 3)" >> UNDERLINE="$(${SETTPUT} smul)" >> WHITE="$(${SETTPUT} setaf 7)" >> BOLD="$(${SETTPUT} bold)"...
2012 Mar 15
3
Problem with stored configs / Invalid unicode escaping
...pt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it''''s compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if...
2011 Jan 13
3
/etc/bashrc causing probs..
...0 ];then # you are rootecho "###############################################"echo "### You are now working as ROOT. ###"echo "### Pay attention to what you type. ###"echo "###############################################" PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]"else # nothing to doechoecho " ###########################################################"echo "Welcome $(whoami), here's something to start your day with:"echoecho `sh /etc/lines.sh /etc/quotes.txt`echo " ###################...
2025 Jan 09
2
[PATCH] ssh-add: support parser-friendly operation
On 2025-01-09 15:27, Corey Hickey wrote: > From: Corey Hickey <chickey at tagged.com> > > When ssh-add is used in a script like: > > if ! KEY_LISTING=$(ssh-add -l 2>&1) ; then > echo "SSH agent error" >&2 > exit 2 > fi > > ...the operation fails when there is an agent but there are no keys in > the agent.
2025 Jan 10
1
[PATCH] ssh-add: support parser-friendly operation
...# No forwarded agent. Someone wants to learn many passwords by heart ... > /usr/bin/ssh "$@" > elif ssh-add -l >/dev/null 2>&1 ; then > /usr/bin/ssh "$@" > else > echo "`tput setaf 0``tput setab 1` Please (re)load your keypairs into the agent first `tput sgr0`" > fi > } Kind regards, -- Jochen Bern Systemingenieur Binect GmbH -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Si...