abiosoft / abiosoft/ishell

Clear screen not working?

Đang mở
#130 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
1.8k
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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()
},
})
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.