abiosoft / abiosoft/ishell

Clear screen not working?

Aperta
#130 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
1.8k
Fork
213
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

So after a checklist i run ClearScreen() but it looks as if the old values are still showing from before. Below are some screen shots and basically the code im running.

Screen Shot 2020-02-27 at 11 13 55 AM
Screen Shot 2020-02-27 at 11 16 09 AM

```
shell.AddCmd(&ishell.Cmd{
Name: "checklist",
Help: "checklist prompt",
Func: func(c *ishell.Context) {
choices := c.Checklist(options, text, nil)

if len(choices) > 0 && choices[0] != -1 {
c.ClearScreen()
c.Println(green("Modules that were updated!!!"))
for _, i := range choices {
c.Println(options[i])
}
}

shell.Close()
},
})
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.