tcp_terminal.run: support native x86 hardware run

Issue #1167
tcp_terminal: fix handling of read characters

Fixes #1167