Compare commits

..

No commits in common. "667b1cf288d135d21c69502f82ea70b76ace9990" and "1397fbe4a37210567c786e04836f6233c7d53d70" have entirely different histories.

4 changed files with 9 additions and 20 deletions

1
.gitignore vendored
View File

@ -15,4 +15,3 @@
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/
.lumerc

BIN
cmd/lume/__debug_bin Normal file

Binary file not shown.

View File

@ -1,19 +0,0 @@
// +build windows
// https://stackoverflow.com/a/52579002
package main
import (
"os"
"golang.org/x/sys/windows"
)
func init() {
stdout := windows.Handle(os.Stdout.Fd())
var originalMode uint32
windows.GetConsoleMode(stdout, &originalMode)
windows.SetConsoleMode(stdout, originalMode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
}

View File

@ -9,11 +9,20 @@ import (
lifx "git.kill0.net/chill9/lume" lifx "git.kill0.net/chill9/lume"
lumecmd "git.kill0.net/chill9/lume/cmd" lumecmd "git.kill0.net/chill9/lume/cmd"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
"golang.org/x/sys/windows"
) )
const lumercFile = ".lumerc" const lumercFile = ".lumerc"
func main() { func main() {
var originalMode uint32
stdout := windows.Handle(os.Stdout.Fd())
windows.GetConsoleMode(stdout, &originalMode)
windows.SetConsoleMode(stdout, originalMode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
defer windows.SetConsoleMode(stdout, originalMode)
var config lumecmd.Config var config lumecmd.Config
config = loadConfig() config = loadConfig()