You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to have a urwid menu (Hello World example) available over a serial COM port instead of stdin/stdout, however, it does not seem to work.
I use two connected serial -> USB adapters on my PC running Ubuntu 20.04, the devices are ttyUSB0 and ttyUSB1.
urwid uses ttyUSB0, and the menu is supposed to be used via minicom on ttyUSB1.
Minicom works with other devices.
When the program starts, it outputs this (note that the Hello World text is completely missing):
WRITE: ? 4 7 h
WRITE: ? 1 0 0 2 l ? 1 0 0 0 l
WRITE: ? 1 0 0 0 h ? 1 0 0 2 h
WRITE:
WRITE: ? 2 5 l
WRITE: 0 ; 3 9 ; 4 9 m
WRITE: H
WRITE: 1 ; 1 H
Keypresses in the minicom window are registered the following way:
CHAR: 102
CHAR: -1
WRITE: ? 2 5 l
WRITE: 0 ; 3 9 ; 4 9 m
WRITE: H
WRITE: 1 ; 1 H
Unfortunately I have no idea why the program does not print Hello World at all. Is it waiting for some event that the stdin/out terminal provides, but the serial port does not? Has anyone managed to get urwid working over COM port?
Thank you very much for the help!
The text was updated successfully, but these errors were encountered:
urwid.raw_display.Screen is designed to interact with VT100-like terminals.
For "dumb" terminal need to make full Screen class: strip/convert most control sequences to the terminal compatible.
If you will make such PR - it will be great
Hi all,
I am trying to have a urwid menu (Hello World example) available over a serial COM port instead of stdin/stdout, however, it does not seem to work.
I use two connected serial -> USB adapters on my PC running Ubuntu 20.04, the devices are ttyUSB0 and ttyUSB1.
urwid uses ttyUSB0, and the menu is supposed to be used via minicom on ttyUSB1.
Minicom works with other devices.
The simplest working example is the following:
When the program starts, it outputs this (note that the Hello World text is completely missing):
Keypresses in the minicom window are registered the following way:
Unfortunately I have no idea why the program does not print Hello World at all. Is it waiting for some event that the stdin/out terminal provides, but the serial port does not? Has anyone managed to get urwid working over COM port?
Thank you very much for the help!
The text was updated successfully, but these errors were encountered: