termdim:在Go中检索终端尺寸

时间:2021-04-19 17:52:01
【文件属性】:
文件名称:termdim:在Go中检索终端尺寸
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-19 17:52:01
Go termdim 检索端子尺寸。 用法 import ( "github.com/ghokun/termdim" ) func MyFunc () { width , height , err := termdim . GetSize ( int ( os . Stdout . Fd ())) }
【文件预览】:
termdim-main
----termdim_test.go(319B)
----termdim_windows.go(381B)
----.github()
--------workflows()
----termdim.go(126B)
----.devcontainer()
--------Dockerfile(215B)
--------devcontainer.json(3KB)
----termdim_unix.go(333B)
----.gitignore(2KB)
----go.sum(1KB)
----README.md(184B)
----.editorconfig(223B)
----go.mod(140B)

网友评论