Update terminal lib