schema and config for terminal.
(fix name error in schema)
fetch terminal status.