fix: remove alt screen to prevent huh/bubbletea terminal conflict
tea.WithAltScreen() caused the alternate buffer to conflict with huh form rendering. Using normal screen lets huh render inline. Also reverted broken tea.Suspend/tea.Resume (not valid commands).
This commit is contained in:
parent
f5ddb145cb
commit
e378c2a436
1 changed files with 2 additions and 7 deletions
|
|
@ -59,7 +59,7 @@ type deployCompleteMsg struct {
|
|||
func Run(r preflight.Result) error {
|
||||
preflightResult = r
|
||||
m := Model{state: viewRoute}
|
||||
p := tea.NewProgram(m, tea.WithAltScreen())
|
||||
p := tea.NewProgram(m)
|
||||
if _, err := p.Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -137,21 +137,16 @@ func (m Model) View() string {
|
|||
}
|
||||
|
||||
func (m Model) startDeploy() tea.Cmd {
|
||||
m.deploying = true
|
||||
return func() tea.Msg {
|
||||
m.deploying = true
|
||||
|
||||
s, err := runDeployForm()
|
||||
if err != nil {
|
||||
return deployCompleteMsg{err}
|
||||
}
|
||||
|
||||
// Deploy native node
|
||||
err = deployNative(s)
|
||||
|
||||
if err == nil {
|
||||
state.Save(&s)
|
||||
}
|
||||
|
||||
return deployCompleteMsg{err}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue