News for hackers. Stuff that matters.
Re:Show HN: Don't Curl Me by kazinator on Tuesday October 06, 2020 @11:39AM (#24698875)
> Exit the session to reset it.

No, just run the reset utility.

You can also use the reset function in your terminal emulator, like the Reset command int he Terminal menu of Gnome Terminal.

The data contains escape codes which shift the terminal into the block drawing character set and change the foreground and background color. These configuration changes can be reset out of the way.

The reset program also fixes the kernel TTY settings, but those are not messed up in this case.

Using the reset utility is like a combination of manually resetting the terminal with its menu command, and then running stty sane (using the GNU Coreutils stty which has the sane keyword) to reset the TTY settings.

Re:Show HN: Don't Curl Me by joeth on Friday October 09, 2020 @01:16PM (#24732119)
Cool tip, thanks!
Re:Show HN: Don't Curl Me by jolmg on Monday October 05, 2020 @06:10PM (#24692609)
I kept seeing a normal HTML output, then I remembered that I changed curl's default user agent.
Re:Show HN: Don't Curl Me by ASlave2Gravity on Friday October 09, 2020 @11:26AM (#24730782)
Great hack, both! :)
Re:Show HN: Don't Curl Me by minus_tech_tips on Sunday October 04, 2020 @11:11AM (#24679594)
:( my terminal looks wierd