terminal logic

quick fix