Problem: GUI has a problem with some termcodes. Solution: Handle negative numbers. (Kazunobu Kuriyama)