use conditional compilation for windows
This commit is contained in:
1 parent
eb2710c888
commit
458bc71688
7 files changed
+122
-93
No files matched your search
@@ -9,7 +9,6 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -515,14 +514,6 @@ func (ui *ui) loadFile(nav *nav) {
|
||||
}
|
||||
}
|
||||
|
||||
func moveCursor(y, x int) {
|
||||
// TODO: implement for windows
|
||||
if runtime.GOOS == "windows" {
|
||||
return
|
||||
}
|
||||
fmt.Printf("\033[%d;%dH", y, x)
|
||||
}
|
||||
|
||||
func (ui *ui) draw(nav *nav) {
|
||||
fg, bg := termbox.ColorDefault, termbox.ColorDefault
|
||||
|
||||
|
||||
Reference in new issue
Block a user