c++ - How to detect XOFF and XON in Linux terminal application -


certain control sequences have special effects in linux, such ctrl-c sends sigint. can handle signals enough, appears ctrl-s (xoff) , ctrl-q (xon) special snowflakes. know effect (to pause input) can disabled in console stty -ixon, , use trickery run command, feels cheap workaround.

is there proper way rid these sequences of special effect , actual ascii values (^s, ^q) using system calls? know doable because text editor nano it, life of me can't find it's being handled. tried searching repo "xoff".

https://github.com/dtrebbien/nano/tree/master/src

use tcgetattr() , tcsetattr() system calls turn off ixon flag on standard input, explained in manual page.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -