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
cmd:=exec.Command(lookup([]string{"LLAMA_EDITOR", "EDITOR"}, "less"), filepath.Join(m.path, m.cursorFileName()))
cmd.Stdin=os.Stdincmd.Stdout=os.Stdout// Note: no Stderr as redirect `llama 2> /tmp/path` can be used.m.editMode=true_=cmd.Run()
m.editMode=falsereturnm, tea.HideCursor
But what to do if a redraw is needed after cmd exits? And is there a better way to halt the program until cmd is exited?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Thanks for the awesome project!
Question: how to properly start subcommand with reuse of Stdout/Stdin?
I'm doing it like so:
https://github.com/antonmedv/llama/blob/58c042eb06a5a661a1388beb4ac09cedf2764ad0/main.go#L183-L190
But what to do if a redraw is needed after cmd exits? And is there a better way to halt the program until cmd is exited?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions