News for hackers. Stuff that matters.
Re:UTF-8 – "The most elegant hack" by zorked on Sunday September 29, 2013 @06:46AM (#6464768)
Not really because a single CR or LF does not do a real CR or LF.
Re:UTF-8 – "The most elegant hack" by prewett on Sunday September 29, 2013 @10:05AM (#6465202)
It used to, back in The Day, when you had hard-copy consoles or even dot matrix printers. I think sending CR (but not LF) and then printing accents over top of the original line was a way of printing some European languages with just ASCII.
Re:UTF-8 – "The most elegant hack" by barrkel on Sunday September 29, 2013 @03:46PM (#6466254)

  $ man terminfo | grep cursor_down | head -1
         cursor_down                   cud1       do        down one line
  $ tput cud1 | hexdump -C | cut -f 1-20 | head -1
  00000000  0a                                                |.|
  $ man terminfo | grep carriage_return | head -1
         carriage_return               cr         cr        carriage return (P*)
  $ tput cr | hexdump -C | cut -f 1-20 | head -1
  00000000  0d                                                |.|
If you ever write a bash script that does more advanced things with the terminal, you'll get familiar with tput, termcap and terminfo pretty quickly.
Re:UTF-8 – "The most elegant hack" by kps on Sunday September 29, 2013 @10:01PM (#6467416)
It does in ASCII, and (consequently) in any ANSI-conforming terminal [emulator].