8fbd1cc461
FossilOrigin-Name: 3c9e31d6487b80fa601c94335efe98ee000f688cdf6686522007fea0fb141c05
12 lines
392 B
Forth
12 lines
392 B
Forth
~~~
|
|
:ioctl:operation
|
|
DEVICE:IOCTL io:scan-for
|
|
dup n:negative? [ drop 'Error:_ioctl_device_not_found s:put nl ] if;
|
|
io:invoke ;
|
|
|
|
:ioctl:term-size (:-nn) #0 ioctl:operation ;
|
|
:ioctl:set-cbreak (:-) #1 ioctl:operation ;
|
|
:ioctl:set-lbreak (:-) #2 ioctl:operation ;
|
|
:ioctl:save-state (:-) #3 ioctl:operation ;
|
|
:ioctl:restore-state (:-) #4 ioctl:operation ;
|
|
~~~
|