摘要:
头文件:#include <termios.h> 函数原型:int cfsetispeed(struct termios *termptr, speed_t speed); int cfsetospeed(struct termios *termptr, speed_t speed); int cf 阅读全文
posted @ 2022-06-17 17:13
gǒが油メo
阅读(2969)
评论(0)
推荐(0)
摘要:
1. tcgetattr函数 头文件:#include <termios.h> 函数原型:int tcgetattr(int fd, struct termios *termios_p); 说明:tcgetattr函数用于获取与终端相关的参数。参数fd为终端的文件描述符,返回的结果保存在termio 阅读全文
posted @ 2022-06-17 16:02
gǒが油メo
阅读(825)
评论(0)
推荐(0)
浙公网安备 33010602011771号