AreaPrinter does not replace content in Git Bash
radulucut opened this issue · comments
When using Git Bash on Windows, the content of the AreaPrinter
is not replaced when calling Update
, instead it is appended at the end.
Works fine when using the default terminal app.
Example:
package main
import (
"fmt"
"time"
"github.com/pterm/pterm"
)
func main() {
area, _ := pterm.DefaultArea.Start()
tableData := pterm.TableData{
{"Count", "Test"},
{"", "test"},
}
for i := 0; i < 1000; i++ {
tableData[1][0] = fmt.Sprintf("%d", i)
t, _ := pterm.DefaultTable.WithHasHeader().WithData(tableData).Srender()
area.Update(t)
time.Sleep(100 * time.Millisecond)
}
}