rintf(<span class="stringliteral">"--- Key '%c' pressed\n"</span>, k);
  key = k;
  key_pressed_flag = 1;
}

<span class="keyword">static</span> <span class="keywordtype">int</span>
key_pressed(<span class="keywordtype">void</span>)
{
  <span class="keywordflow">if</span>(key_pressed_flag != 0) {
    key_pressed_flag = 0;
    <span class="keywordflow">return</span> 1;
  }
  <span class="keywordflow">return</span> 0;
}
<span class="comment">/*----------------------------------------------------