I think he wants the output in a separate window, not the command.
The problem with what you want to do is there is normally a lag between entering the command and receiving the results.
For example, you might type "inventory" but get back:
Lightning crackles in the sky above!
Boris chats 'where is the shop where I can buy swords?'
You are carrying:
a magic mushroom
a torch
a dragonskin
a bag
recall scroll
a braided leather belt
heavy mail leggings
In this case I have a couple of extra lines that are not really part of the inventory.
Now, if you don't mind that, then you could make an alias for (say) "inventory", that enables an trigger. This trigger would match "*" (everything), and send to "append to notepad", and also "omit from output".
That effectively moves everything that is received afterwards from the main window to the notepad (each notepad has a separate title based on the trigger name).
However your problem is stopping it. If you don't do anything else, then the entire following session will be in the notepad window and not the main window.
You need a "stopper" - in the case above a totally blank line is the end of the inventory. Another trigger could detect that and turn the first trigger off (disable it).
However in my example above there is also a blank line *before* the inventory. So, the simplest thing might be:
- Trigger "a" detects "You are carrying:" and enables trigger "b"
- Trigger "b" detects "*" (everything) and moves it to the notepad
- Trigger "c" detects a blank line and disables trigger "b"