Compare commits
No commits in common. "667b1cf288d135d21c69502f82ea70b76ace9990" and "1397fbe4a37210567c786e04836f6233c7d53d70" have entirely different histories.
667b1cf288
...
1397fbe4a3
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,4 +15,3 @@
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
|
||||
.lumerc
|
||||
|
BIN
cmd/lume/__debug_bin
Normal file
BIN
cmd/lume/__debug_bin
Normal file
Binary file not shown.
@ -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)
|
||||
}
|
@ -9,11 +9,20 @@ import (
|
||||
lifx "git.kill0.net/chill9/lume"
|
||||
lumecmd "git.kill0.net/chill9/lume/cmd"
|
||||
"github.com/BurntSushi/toml"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
const lumercFile = ".lumerc"
|
||||
|
||||
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
|
||||
config = loadConfig()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user