Subj : Opendoors, C++ od_control Question
To   : All
From : Basis
Date : Mon Jun 09 2025 09:10 pm

Hello,
Tinkering with opendoors and C++.  I have a fully working hello world build environment that works from a client app (like syncterm) calling a door inside Windows Synchronet w/ socket i/o method and door32.sys drop file.

I'm trying to display ANSI from a file without the prompt: Continue? [Y/n/=]

I've been reading the manual around the settings for od_control.user_attribute.
Namely:
user_          unsigned char od_control.user_attribute;
attribute
              This variable is a bitmap of eight flags, each of which
              represent individual pieces of information pertaining to the
              user that is currently online. These flags are as follows:

                      +-----+------+-----------------------+
                      | BIT | MASK | DESCRIPTION           |
                      +-----+------+-----------------------+
                      |  0  | 0x01 | Is the user deleted   |
                      |  1  | 0x02 | Is screen clearing on |
                      |  2  | 0x04 | Is "more" prompt on   |
                      |  3  | 0x08 | Is ANSI mode on       |
                      |  4  | 0x10 | User no-kill setting  |
                      |  5  | 0x20 | Transfer-priority     |
                      |  6  | 0x40 | Full screen editor    |
                      |  7  | 0x80 | Quiet mode            |
                      +-----+------+-----------------------+

From the glossary, it says:
Clear Flag:    variable &=~ FLAG_CONSTANT;

I've tried the following w/o success.

#define MORE_PROMPTS         0x04
od_init();
od_control.user_attribute &= ~MORE_PROMPTS;

I also tried putting od_init(); after the od_control setting, but it didn't work.

Am I on the right path here, or am I missing something.  It's been many years since I've worked with C++ - and never with opendoors.

Thanks!
Convolution BBS - Convolution.us

...You mark that frame an 8, and you're entering a world of pain.

---
� Synchronet � Convolution BBS - convolution.us