Update Terminal.java