added paging for interactive mode for terms and postings commands