Added 'gr_inqtext' function