问题
This question is related to pty terminal packet mode TIOCPKT
What the linux
way of enabling packet mode
? I could not find I_PUSH
working when passed in ioctl
function.
回答1:
TIOCPKT
is exactly what you want, according to the tty_ioctl(4) man page: the argument is a pointer to an integer which is non-zero to enable packet mode, or zero to disable it.
来源:https://stackoverflow.com/questions/7614618/linux-equivalent-of-i-push