Terminal codes