title: Handle keyboard input on shell
body: <p>I am developing a custom shell like bash (in C).
  I am working right now on the events triggered by the arrows and the tab key. However, those special keys should be handled correctly.</p>
  
  <p>What I want is to capture those keys and not let the CLI draw them on screen. What happens is that when the up arrow is pressed, for example, it draws the following symbol: '^[[A'</p>
  
  <p>How can I stop it from happening? And what is the best way to read and map those keys?</p>