(data, forceOutput=False, bold=False, content_type=None, status=CONTENT_STATUS.IN_PROGRESS)
Writes text to the stdout (console) stream
Writes text to the stdout (console) stream
Writes text to the stdout ( console ) stream
def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=CONTENT_STATUS.IN_PROGRESS):
    """
    Writes text to the stdout (console) stream
    """

    message = ""

    if not kb.get("threadException"):
        if forceOutput or not getCurrentThreadData().disableStdOut:
            if kb.get("multiThreadMode"):
                logging._acquireLock()

            if isinstance(data, unicode):
                message = stdoutencode(data)
            else:
                message = data

            if hasattr(conf, "api"):
                sys.stdout.write(message, status, content_type)
            else:
                sys.stdout.write(setColor(message, bold))

            try:
                sys.stdout.flush()
            except IOError:
                pass

            if kb.get("multiThreadMode"):
                logging._releaseLock()

            kb.prependFlag = isinstance(data, basestring) and (len(data) == 1 and data not in ('\n', '\r') or len(data) > 2 and data[0] == '\r' and data[-1] != '\n')
def dataToStdout ( data , forceOutput = False , bold = False , content_type = None , status = CONTENT_STATUS . IN_PROGRESS ) : message = "" if not kb . get ( "threadException" ) : if forceOutput or not getCurrentThreadData ( ) . disableStdOut : if kb . get ( "multiThreadMode" ) : logging . _acquireLock ( ) if isinstance ( data , unicode ) : message = stdoutencode ( data ) else : message = data if hasattr ( conf , "api" ) : sys . stdout . write ( message , status , content_type ) else : sys . stdout . write ( setColor ( message , bold ) ) try : sys . stdout . flush ( ) except IOError : pass if kb . get ( "multiThreadMode" ) : logging . _releaseLock ( ) kb . prependFlag = isinstance ( data , basestring ) and ( len ( data ) == 1 and data not in ( '\n' , '\r' ) or len ( data ) > 2 and data [ 0 ] == '\r' and data [ - 1 ] != '\n' )