初次提交

This commit is contained in:
Mob2003
2023-03-22 11:30:21 +08:00
parent 0c34cff145
commit 30bf0dc9d0
95 changed files with 14609 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
}