Discover resourcesdir with `terminfo/g/ghostty` as well as existing `terminfo/x/xterm-ghostty`. This allows either terminfo file to be installed, notably ncurses only provides a `terminfo/g/ghostty`.
WINDOWID