Copy stdin to stdout: Difference between revisions

Content added Content deleted
(→‎{{header|Go}}: Add a simpler solution)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 721: Line 721:


Bytes are read from stdin and written to stdout until the return key is pressed.
Bytes are read from stdin and written to stdout until the return key is pressed.
<syntaxhighlight lang="ecmascript">import "io" for Stdin, Stdout
<syntaxhighlight lang="wren">import "io" for Stdin, Stdout


Stdin.isRaw = true // prevents echoing to the terminal
Stdin.isRaw = true // prevents echoing to the terminal