When I use \g | then I expect so usql will be in backround and should not to read from /dev/tty. But it is not true. You can check - "select * from pg_class \g | pspg" is working from psql, but don't work from usql (the usql still read the data from /dev/tty).