Black and white when using docker #383
Replies: 5 comments 4 replies
-
Anyone fixed this issue? |
Beta Was this translation helpful? Give feedback.
-
there's some explanation in https://github.com/charmbracelet/wish/pull/273/files unfortunately its not merged, will work on it. |
Beta Was this translation helpful? Give feedback.
-
Okay. Do you mean, this will work on wish version 2? I also tried to understand the trick to use a custom lipgloss renderer, but I couldn't figure it out. Is there an example of this somewhere? For example, the wish program I have starts several models from a main model. This is the first one but I have no clue how would I apply a custom renderer there. Thanks! package tui import ( // Define your service types type selectFunctionModel struct { func NewSelectFunctionModel() *selectFunctionModel { func (m *selectFunctionModel) Init() tea.Cmd { func (m *selectFunctionModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
} func (m *selectFunctionModel) View() string { |
Beta Was this translation helpful? Give feedback.
-
Thank you. That is what I feared. At this point it seems it would require a lot of work all over my code since I have to redefine all the styles in the bubble models, unless I am missing something obvious. I also tried just with the v2 and I cannot get pass another error. I will try to create another issue for that. Again, thank you! |
Beta Was this translation helpful? Give feedback.
-
FWIW, I pushed github.com/charmbracelet/wish/v2@v2exp - this uses all the new libraries, if anyone wants to try it out. example bubbletea app: https://github.com/charmbracelet/wish/blob/v2-exp/examples/bubbletea/main.go Notice there's no need of See #392 |
Beta Was this translation helpful? Give feedback.
-
I have this program that works well, but I needed to put it in a container. The problem is that all I get now is black and white. I have tried a lot of different things (including changing the os.Setenv to different values). I will include my main.go and the dockerfile if that helps.
Dockerfile
Beta Was this translation helpful? Give feedback.
All reactions