m-labs / misoc

The original high performance and small footprint system-on-chip based on Migen™
https://m-labs.hk
Other
305 stars 85 forks source link

flterm broken when run under SSH #28

Closed whitequark closed 8 years ago

whitequark commented 8 years ago
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/home/whitequark/miniconda/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/home/whitequark/miniconda/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "flterm.py", line 242, in writer
    b = getkey()
  File "flterm.py", line 19, in getkey
    old = termios.tcgetattr(fd)
termios.error: (25, 'Inappropriate ioctl for device')
sbourdeauducq commented 8 years ago

Works fine here. Are you sure the culprit isn't e.g. tmux or mosh?

whitequark commented 8 years ago

Sorry, was unclear. By "under SSH" I meant like ssh host flterm ....

sbourdeauducq commented 8 years ago

Does ssh have a good reason for disallowing termios calls on the pty (or pipe?) it gives to the command you run? If you don't do those termios calls, the behavior becomes funny (double echo, characters only sent after you press ENTER).

Does ssh -t help?

whitequark commented 8 years ago

Yes, ssh -t helps. I guess this is a solution.

mithro commented 8 years ago

flterm should probably detect the lack of pty and throw a more useful error?