A terminal locking program