Terminal operating system (TOS)