"refactor(common): 重构序列化工具包,将serialize重命名为utils并添加bitset组件"
This commit is contained in:
23
common/utils/log/term/wrapper.go
Normal file
23
common/utils/log/term/wrapper.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2013 Apcera Inc. All rights reserved.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/apcera/termtables/term"
|
||||
)
|
||||
|
||||
func main() {
|
||||
size, err := term.GetSize()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "failed: %s\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Printf("Lines %d Columns %d\n", size.Lines, size.Columns)
|
||||
}
|
||||
Reference in New Issue
Block a user