{"id":49904,"library":"x-term","title":"Go x/term","description":"Package term provides support functions for dealing with terminals, as commonly found on UNIX systems.","status":"active","version":"0.44.0","language":"go","source_language":null,"source_url":null,"tags":["terminal","unix","tty","console"],"install":[{"cmd":"go get golang.org/x/term","lang":"bash","label":"Install golang.org/x/term"}],"dependencies":[],"imports":[{"symbol":"term","correct":"golang.org/x/term"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"golang.org/x/term\"\n)\n\nfunc main() {\n\tw, h, err := term.GetSize(0)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"Width: %d, Height: %d\\n\", w, h)\n}","lang":"go","description":"Get terminal size using term.GetSize"},"warnings":[],"env_vars":null,"search_vec":"'common':13 'consol':21 'deal':9 'found':14 'function':7 'go':1 'packag':3 'provid':5 'support':6 'system':17 'term':4 'termin':11,18 'tti':20 'unix':16,19 'x/term':2","created_at":"2026-06-15T04:32:35.180088+00:00","updated_at":"2026-06-15T04:32:35.180088+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://cs.opensource.google/go/x/term","github":null,"docs":"https://pkg.go.dev/golang.org/x/term#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}