terminal codes