Add -t option for terminal editing support