You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
624 B

chan configure stdout -buffering none
chan configure stderr -buffering none
puts -nonewline stderr "1 hello on stderr with crlf newline\r\n"
flush stderr
puts -nonewline stdout "2 hello on stdout with crlf newline\r\n"
flush stdout
puts -nonewline stderr "3 hello on stderr with unix newline\n"
flush stderr
puts -nonewline stdout "4 hello on stdout with unix newline\n"
flush stdout
puts -nonewline stderr "5 hello on stderr no line-ending"
flush stderr
puts -nonewline stdout "6 hello on stdout no line-ending"
flush stdout
puts -nonewline stderr "7 hello on stderr no line-ending"
flush stderr
set ::tcl_interactive 1