config: Don't hardcode the fakecursor under Windows console any longer (#3959)

* config: Don't hardcode the `fakecursor` under Windows console any longer

We just set the global default and allow the user to override it.

* help: Add a concrete note for the `fakecursor` option in the Windows Console
This commit is contained in:
Jöran Karl
2026-01-10 20:13:29 +01:00
committed by GitHub
parent 6a62575bcf
commit 9a6c827880
4 changed files with 13 additions and 10 deletions

View File

@@ -38,9 +38,6 @@ var (
CompileDate = "Unknown"
// Debug logging
Debug = "OFF"
// FakeCursor is used to disable the terminal cursor and have micro
// draw its own (enabled for windows consoles where the cursor is slow)
FakeCursor = false
// Stdout is a buffer that is written to stdout when micro closes
Stdout *bytes.Buffer
@@ -93,10 +90,6 @@ func init() {
fmt.Println("Invalid version: ", Version, err)
}
_, wt := os.LookupEnv("WT_SESSION")
if runtime.GOOS == "windows" && !wt {
FakeCursor = true
}
Stdout = new(bytes.Buffer)
}