[GH-ISSUE #233] when i use idea debug model #126

Closed
opened 2026-03-03 16:22:36 +03:00 by kerem · 2 comments
Owner

Originally created by @godla on GitHub (Apr 13, 2020).
Original GitHub issue: https://github.com/mum4k/termdash/issues/233

open /dev/tty: device not configured

how to fix?

Originally created by @godla on GitHub (Apr 13, 2020). Original GitHub issue: https://github.com/mum4k/termdash/issues/233 open /dev/tty: device not configured how to fix?
kerem 2026-03-03 16:22:36 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@mum4k commented on GitHub (Apr 13, 2020):

Hello @godla, I suspect that is because idea debug model doesn't provide termdash with access to a real terminal (/dev/tty is a terminal access device). termdash uses termbox-go to draw on a real terminal.

If you just need to debug something, I would suggest using the fake terminal implementation:

https://github.com/mum4k/termdash/tree/master/private/faketerm

This will allow you to run any code including widgets without them writing onto a real terminal. They write into a cell buffer in memory instead. This is used in multiple unit tests throughout the code base, so there should be plenty of examples.

Please let me know if you have more questions.

<!-- gh-comment-id:612934845 --> @mum4k commented on GitHub (Apr 13, 2020): Hello @godla, I suspect that is because idea debug model doesn't provide termdash with access to a real terminal (/dev/tty is a terminal access device). termdash uses termbox-go to draw on a real terminal. If you just need to debug something, I would suggest using the fake terminal implementation: https://github.com/mum4k/termdash/tree/master/private/faketerm This will allow you to run any code including widgets without them writing onto a real terminal. They write into a cell buffer in memory instead. This is used in multiple unit tests throughout the code base, so there should be plenty of examples. Please let me know if you have more questions.
Author
Owner

@godla commented on GitHub (May 11, 2020):

thanks

<!-- gh-comment-id:626508291 --> @godla commented on GitHub (May 11, 2020): thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#126
No description provided.