{"action":"opened","issue":{"url":"https://api.github.com/repos/gdamore/tcell/issues/93","repository_url":"https://api.github.com/repos/gdamore/tcell","labels_url":"https://api.github.com/repos/gdamore/tcell/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/gdamore/tcell/issues/93/comments","events_url":"https://api.github.com/repos/gdamore/tcell/issues/93/events","html_url":"https://github.com/gdamore/tcell/issues/93","id":150232531,"number":93,"title":"use the terminfo database instead of the json database","user":{"login":"nhooyr","id":10180857,"avatar_url":"https://avatars.githubusercontent.com/u/10180857?v=3","gravatar_id":"","url":"https://api.github.com/users/nhooyr","html_url":"https://github.com/nhooyr","followers_url":"https://api.github.com/users/nhooyr/followers","following_url":"https://api.github.com/users/nhooyr/following{/other_user}","gists_url":"https://api.github.com/users/nhooyr/gists{/gist_id}","starred_url":"https://api.github.com/users/nhooyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhooyr/subscriptions","organizations_url":"https://api.github.com/users/nhooyr/orgs","repos_url":"https://api.github.com/users/nhooyr/repos","events_url":"https://api.github.com/users/nhooyr/events{/privacy}","received_events_url":"https://api.github.com/users/nhooyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T00:55:50Z","updated_at":"2016-04-22T00:55:50Z","closed_at":null,"body":"I'm working on a small library for reading terminfo files in pure go. \r\n\r\nIt is used like this:\r\n\r\n```go\r\npackage terminfo_test\r\n\r\nimport (\r\n\t\"testing\"\r\n\r\n\t\"github.com/nhooyr/terminfo\"\r\n\t\"github.com/nhooyr/terminfo/caps\"\r\n)\r\n\r\nfunc TestOpen(t *testing.T) {\r\n\tti, err := terminfo.Open()\r\n\tif err != nil {\r\n\t\tt.Fatal(err)\r\n\t}\r\n\tt.Log(ti.Names[0])\r\n\tt.Log(ti.BoolCaps[caps.BackColorErase])\r\n\tt.Log(ti.NumericCaps[caps.MaxColors])\r\n\tt.Log(ti.StringCaps[caps.SetAForeground])\r\n}\r\n```\r\n\r\nIts a WIP so any ideas or changes are welcome. \r\n\r\nWhat do you think of using this instead of the json database?"}}