title: Hide dialog output in bash scrollback (Ubuntu)
body: <p>I use the following script to display a dialog in the bash shell:</p>
  
  <pre><code>#!/bin/bash
  TFILE=/tmp/habitat_resp_`whoami`.$$
  dialog --menu "Commander?" 20 50 10 \
               1       "MySQL" \
               2       "Apache" \
               3       "Postfix" \
               4       "Dovecot" \
               5       "Owncloud" \
               2&gt; $TFILE
  
           # get response
           RESPONSE=$(cat $TFILE)
  echo $RESPONSE
  clear
  </code></pre>
  
  <p>The problem is, when I scroll up, i can still see the dialog in my scrollback. I want it like vi. I open my script and the dialog appears and if the script is over you cant see the dialog in scrollback.</p>
  
  <p>How can this be achieved?</p>
  
  <p>Regards
  S.</p>