All pastes #19444 Raw Edit

Something

public text v1 · immutable
#19444 ·published 2005-08-06 16:12 UTC
rendered paste body
        # get console input and build a string until <RETURN> pressed, then put the string to IRC
        if read -n 1 -t 1 ONECHAR <&6; then
                if [ -z "$ONECHAR" ]; then
                        echo "---DEBUG: triggered to send console input" >&7
                        echo -en "PRIVMSG ${BOTCHAN} :${CONSINPUT}\r\n"
                        CONSINPUT=""
                else
                        CONSINPUT="${CONSINPUT}${ONECHAR}"
                fi
        fi