Ok, thanks for info. I hope writing on CLI will not a big problem. Maybe you must close graphics mode somehow to write on CLI. Because probable AMOS code like HSPascal code write on CLI default not on gadget elements or graphics. I hope you handle it because it will be great from reasons which I mentioned above
Maybe look at source which I attached. Like you see I can return WARN (5). Maybe you can do the same in AMOS. I have none AMOS knowledge but maybe it have something like HSPascal procedure CloseGraph and when you use it you can write to standard text output if this is a problem of that kind.