title: How to get key bind to work in gnuplot dumb terminal?
body: <p>I tried to implement a plotting loop in the text terminal <code>dumb</code>.
  In order to stop the loop I'm using <code>bind</code> (check <code>help bind</code>).
  This works fine, e.g. in a <code>wxt</code> terminal, however, the loop will not stop when using the <code>dumb</code> terminal.</p>
  <p>I know that I could stop the loop by pressing <code>Ctrl+C</code>, however, it looks like no key bindings seem to be possible. Why is this? How to workaround?</p>
  <p><strong>Code:</strong></p>
  <pre><code>### key bind in dumb terminal?
  reset session
  set term dumb 120,30
  
  # random plot
  set samples 20
  plot '+' u 1:(rand(0)) w l ti strftime(&quot;%d.%m.%Y\n%H:%M:%S&quot;,time(0))
  
  stop = 0
  bind x &quot;stop = 1&quot;
  
  while !stop {
      pause 1.5     # delay in seconds
      replot
  }
  ### end of code
  </code></pre>
  <p><strong>Result:</strong> (but loop will not stop by pressing <code>x</code> as it would in a <code>wxt</code> terminal)</p>
  <pre><code>    1 +---------------------------------------------------------------------+   
        |                 +                +                 +                |   
        |                       ***                        24.02.2021 ******* |   
    0.9 |-+                   **  *                        10:40:46         +-|   
        |                     *    *                                          |   
    0.8 |-+                  *     *                           *            +-|   
        |      ****          *     *           ***             *              |   
        |      *   *         *      *        **  *             **             |   
    0.7 |-+    *   *        *       *        *   *             **           +-|   
        |     *     *       *       *       *     *           *  *            |   
    0.6 |-+   *     *      *        *       *     *           *  *          +-|   
        |     *      *     *         *     *      *           *   *           |   
        |     *      *     *         **    *      *           *   *           |   
    0.5 |*+   *       *   *            ** *        *          *    *        +-|   
        |*    *       *   *               *        *    *     *    *          |   
        |*   *         ***               *         *   **    *     *         *|   
    0.4 |-*  *         *                           *   * *   *      *       +*|   
        | *  *                                     *  *  *   *      *        *|   
    0.3 |-+* *                                      **    *  *       *      *-|   
        |  * *                                      **    *  *       *      * |   
        |  **                                       *     *  *       *      * |   
    0.2 |-+ *                                              **         *    *+-|   
        |   *                                              **         *    *  |   
    0.1 |-+                                                 *          *   *+-|   
        |                                                   *          ****   |   
        |                 +                +                 +            *   |   
      0 +---------------------------------------------------------------------+   
       -10               -5                0                 5                10  
       
  </code></pre>