Anyways, here is the patch again with the pager output changed from 67 to 69. Feel free to use it or ignore it, I still think it is a useful patch and doesn't necessary imply that users will want looping next (although, I would like to do anonymous PL/pgSQL chunks ;). I just understand how useful internal variables are if you can't get input into them easily on all platforms.
psql_prompt.diff
Description: Binary data
---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings