set or query the rows and columns of a device
#include <sys/dev.h>
int dev_size (int fd,
int set_rows, int set_columns,
int *rows, int *cols );
This function gets or sets the "size" of a terminal device. To get the current size, pass -1 for set_rows and/or set_columns; to change the size, set these arguments to the new values. The previous values are returned in the memory pointed to by rows and cols if these pointers aren't NULL.
QNX
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | Yes, but modifies errno |
| Thread | Yes |