Basic Read-Print-Loop for serial/ethernet port.