I am not sure what your question is and as no-one has replied forgive me for my attempt.
If you want to capture the output of a command in a window ...generally this is achieved by
command > /pathwaytosavefile/newfilename
$ ls > /home/gordy/ls
gordy@siduxbox:~$ cat ls