#: 15055 S10/OS9/6809 (CoCo)
24-Apr-92 12:04:11
Sb: #15047-echo off
Fm: Pete Lyall 76703,4230
To: Sharon Lind 70760,3643 (X)
Sharon -
Whew... it's been years since I BASIC09'd, but the bottom line is this:
a) Use the GETOPT service call to get a copy of the affected
path's options
b) Set the PD.ECHO byte to off
c) Use the SETOPT service call to send these option bytes
back to the path descriptor.
If you're only going to be toggling ECHO, no big deal... but, if you're messing
with other elements of the descriptor options as well, the best idea is get TWO
copies of the path options, and keep one pristine (untouched). That way, when
it comes time to put the options back where you found them, you can just send a
copy of that back rather than remember all the fields you diddled with.
Pete
|