fix terminal after displaying binary codes

When I print binary codes in the terminal, some mess codes display on the screen. I reboot my system to fix the issue. It’s a bad idea. My previous works is gone. I have to reopen all files again.

mass code in the terminal.PNG

The quick way is to type the command reset and hit return.