Add simple communication code between terminal and platform.