new comport implementation (the one from DebugTerminal)