lite源码

This commit is contained in:
Mob2003
2023-04-02 21:43:11 +08:00
parent 34d95e9eb9
commit e48ed59a73
32 changed files with 5150 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
//go:build linux || darwin
// +build linux darwin
package common
import (
"github.com/creack/pty"
"os"
)
func SetConsoleVT() {}
func GetSize() *pty.Winsize {
size, _ := pty.GetsizeFull(os.Stdin)
return size
}