From bb7c81e4f67e124a29d3d71da8df42eae0a064d5 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 13 Apr 2023 06:12:48 -0700 Subject: [PATCH] Add entry to faq.md about terminal sanity In other words after running a curses program (ANSI escape codes can also cause problems) the terminal can be quite insane; echo might be disabled as a simpler example but many worse more annoying problems can occur. The simplest way is to run reset. This will restore everything though it'll clear the screen (clear command will not fix any problems but just clear the screen). For echo disabled stty echo should work. Sometimes you can get away with doing stty sane. Now these are in the faq.md. I wrote more about this in 2020/ferguson1 but that doesn't really matter other than it was the inspiration for this entry (which I think is a good idea to include). --- faq.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/faq.md b/faq.md index e8dcf2ce8..9c86a2e1b 100644 --- a/faq.md +++ b/faq.md @@ -172,6 +172,12 @@ fix. If it is accepted we'll be happy to credit you in the entry's _README.md_ file. If you're a previous winner we will happily link to your entries; if you're not we can link to your website if you wish. +## Q: After running a program my terminal is all messed up! How do I restore my terminal? + +The simplest way to do this is to type `reset`. If echo was disabled you can get +away with `stty echo`. Sometimes you can also get away with `stty sane`. `reset` +does the most but note that it will clear the screen (`clear` will not work). + ## Q: Are there types of entries that are submitted so frequently that the judges get tired of them? Yes, there are types of entries that show up over and over again.