Skip to content

Conversation

@eatradish
Copy link
Member

No description provided.

@eatradish eatradish force-pushed the handle-serial-port branch 7 times, most recently from 66c54d1 to 2cfff5a Compare December 4, 2025 02:18
@MingcongBai
Copy link
Member

Detecting serial consoles (or slow consoles, as we initially set to find out) via ioctl() or file descriptors is probably a bust, for the record (and those who come after us):

  • Serial consoles can still get/set window sizes via (or for that matter, has) TIOCGWINSZ and TIOCSWINSZ.
  • While real TTY/serial console shell sessions may identify themselves as /dev/tty[A-Z]* and not /dev/tty[1..9999999] or /dev/pts/* as found with SSH/Tmux/... via /proc/self/fd/0, the program itself will still find themselves in pseudo terminals.

We'd need a more robust way to do this - or maybe there are other ideas?

@eatradish eatradish force-pushed the handle-serial-port branch 3 times, most recently from 256cac8 to 8febdb8 Compare December 4, 2025 10:09
@MingcongBai
Copy link
Member

Unfortunately, the interface still flickers, but not as much - it could be due to the fact that multiple elements were updated at the same time.

The latency on serial terminals are still low, however, so that might not have helped too much.

@eatradish eatradish marked this pull request as draft December 10, 2025 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants