Fixing a misbehaving terminal after after software interruption (pdb) or messed up output

1. Preface

Your terminal on Linux or OSX may end up to a bad state.

  • You cat a binary file to terminal
  • You interrupt pdb or some other application reading lines in a bad way

2. Symptoms

  • New lines don’t work
  • You cannot see your own typing to terminal
  • Backspace stops working

3. Fix

Type command

stty sane

This may fix some problems without needing to restart the terminal. More info.

\"\" Subscribe to RSS feed Image Follow me on Twitter Image Follow me on Facebook Image Follow me Google+