go - Show text in the center of terminal screen in golang -


i playing golang , want create simple terminal tool (on mac, should work on linux too). need display character "x" in center of terminal window. how can detect width , height of terminal window , detect changes?

a terminal package exists in go crypto repository: in particular, check out getsize function


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -