You mentioned
watch STDIN in the separate thread, and let it watch for q
Will it work theoretically?
Say, will the thread be able to capture q if it's already consumed by more?
In reply to Re^2: How to know whether user terminates system("$cmd|more") with q or not?
by PerlOnTheWay
in thread How to know whether user terminates system("$cmd|more") with q or not?
by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |