terminfo: fix location