Update termcoin

There may be a reason for the enormous if-block, but I think this'd work.