0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-28 08:43:02 +00:00
uxn/projects/examples/devices/console.echo.tal

24 lines
288 B
Tal
Raw Normal View History

( dev/console )
(
Copies data from stdin to both stdout and stderr.
)
|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ]
( init )
|0100 ( -> )
2021-06-28 16:40:29 +00:00
;on-stdin .Console/vector DEO2
2021-06-28 16:40:29 +00:00
BRK
@on-stdin ( -> )
2021-06-28 16:40:29 +00:00
.Console/read DEI
DUP .Console/write DEO
.Console/error DEO
2021-06-28 16:40:29 +00:00
BRK