add terminal get ioctl