Implemented new terminal module. Maybe other commits will be necessary
after debugging with a real modem device