Doing operations in a while loop until a key combination is invoked c++ <p>I have the following issue. I want to do some certain operations in a Linux terminal until the key combination CTRL+D is invoked. I have found a C++ library function for Windows that can do this, but no easy solution for Linux. The code skeleton will be something like this:</p> <pre><code>while(!invoked){ //Until CTRL+D is pressed //Do something } //Continue when CTRL+D is invoked </code></pre> <p>Is this possible?</p>