Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <termio.h>
- /* Convenience macros for the flush cmd argument */
- #define FLUSH_IN 0
- #define FLUSH_OUT 1
- #define FLUSH_BOTH 2
- /*
- * Function for flushing a terminal/serial device
- */
- tcFlush(int fileDescriptor, int cmd) {
- ioctl(fileDescriptor, TCFLSH, cmd);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement