title: How can I prevent my terminal from breaking?
body: <p>I am using a <code>watch</code> command(in a shell script) in my docker image.</p>
  
  <p>Command:</p>
  
  <pre><code>watch -d -t -g ls -la  ${DIR_TO_WATCH} &amp;&amp; sleep 5  &amp;&amp; ${COMMAND} | tee
  </code></pre>
  
  <p>This command is watching a directory and if there is any change in the directory structure, we perform certain actions.</p>
  
  <p>I am using this docker image in my helm chart.
  Now, when I deploy the chart and check the logs of that pod, my terminal breaks and it will not be user friendly anymore.</p>
  
  <p>Command:</p>
  
  <pre><code>kubectl logs -f pod-name -n name-space
  </code></pre>
  
  <p>After this, we need to reset terminal settings to get the terminal behave normal.</p>
  
  <p>Is there anything that can be done to prevent this?</p>
  
  <p>Best Regards,
  Akshat</p>