The %ioctl() function is a general purpose control function that passes the arguments request and arg to the device designated by file.descriptor.
For Windows: Not Supported
var = %ioctl(file.descriptor, request, arg)
The format of the arguments is device-specific. These arguments are usually binary data that must be kept out of FlashBASIC data space. See the example below.
* Allocate some data ptr=(char*)%malloc(128) * Open the terminal and get its termio structure execute "!exec tty" capturing ttyname fd=%open(ttyname, o$rdwr) n=%ioctl(fd, tcgeta, (char*)ptr) ... * Release data %free((char*) ptr)