Function to actually spool output terminal data to dupterm object.
That's just function which sets/gets dup terminal object, and can be easily reused across ports.