-
Hi, I have created an image widget based on my terminal graphics library (https://github.com/srlehn/termimg). The widget can consume an image stream (video) and does implement image/draw.Image. It is still very experimental. the implementation is here: https://github.com/srlehn/termimg/blob/master/tui/tcellimg/image.go test program: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This is cool, but I don't think there is any we need from tcell here, right? Nothing actionable? |
Beta Was this translation helpful? Give feedback.
-
I intended to ask about some issues I encountered while implementing the widget but forgot about it... |
Beta Was this translation helpful? Give feedback.
-
I embedded views.Cellview into my Image struct to implement the views.Widget interface. For the model I used the linesModel from views.TextArea. Is there an easier way to have views.Widget implemented? My library needs to consume the terminal output but that results in missed keystrokes in tcell. A copy of this stream as an io.Reader like Tty.Read() would be great. Is CSI 14t used somewhere as a fallback for TIOCGWINSZ for measuring the pixel size of the terminal? |
Beta Was this translation helpful? Give feedback.
-
The views framework is rather an incomplete implementation. So lots of things you might like to have there are missing. There are more complete widget tools based on Tcell available. You might want to have look at the Tty interface that might help you with getting access to the raw stream. |
Beta Was this translation helpful? Give feedback.
We also are not using CSI 14t right now. But you can do that in a Tty I suspect.