Added terminal interface to hostapp