What I usually do on Linux is to keep two terminals open.
In one, I’m using ‘vi’ to edit a file containing my queries. Like
In the other, I’m in the /opt/BESClient/bin directory executing qna to read the file and give output.
The query.qna is text formatted like a Fixlet Debugger query. It may contain multiple queries.
Q: name of operating system
That lets me use normal text-editing, insert, delete, copy, etc. that don’t work so well in the QNA shell.