You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/05/07 16:21:32 UTC

[GitHub] [incubator-nuttx] davids5 commented on pull request #3674: libc/termios: Implement TCSADRAIN and TCSAFLUSH for tcsetattr

davids5 commented on pull request #3674:
URL: https://github.com/apache/incubator-nuttx/pull/3674#issuecomment-834589601


   Background 
   https://pubs.opengroup.org/onlinepubs/009696799/functions/tcsetattr.htm
   ```
   The tcsetattr() function shall set the parameters associated with the terminal referred to by the open file descriptor fildes (an open file descriptor associated with a terminal) from the termios structure referenced by termios_p as follows:
   
   If optional_actions is TCSANOW, the change shall occur immediately.
   
   If optional_actions is TCSADRAIN, the change shall occur after all output written to fildes is transmitted. This function should be used when changing parameters that affect output.
   
   If optional_actions is TCSAFLUSH, the change shall occur after all output written to fildes is transmitted, and all input so far received but not read shall be discarded before the change is made.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org