terminfo: move template comments in the right place