Browse Source

more stdout/stderr example outputs in scriptlib/hello.tcl

master
Julian Noble 2 years ago
parent
commit
abb5058a31
  1. 18
      scriptlib/hello.tcl

18
scriptlib/hello.tcl

@ -1,3 +1,17 @@
puts stdout "hello on stdout" chan configure stdout -buffering none
puts stderr "hello on stderr" 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

Loading…
Cancel
Save