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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -