read_terminal API
Working on removing redundancy lines