Hello,I'm not too familiar with opendoors but it looks like you're trying to
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
Have you tried setting char od_control.od_list_pause to false? The default is true which lets the user pause the output. This may go along with char
Re: Re: Opendoors, C++ od_control Question
By: nelgin to All on Tue Jun 10 2025 01:19 pm
Have you tried setting char od_control.od_list_pause to false? The default is true which lets the user pause the output. This may go along with char
I tried changing that to a 1 and a 0, and I still get the prompt.
Codefenix gave a suggestion to set the screen lenghth prior to the file display. If you set this to a large enough value, it'll go through animated ansis as well as longer scrolling ones.
Anyways, in case it helps someone in the future:
int screen_len_before_change = od_control.user_screen_length; od_control.user_screen_length = 200;
then set back:
od_control.user_screen_length = screen_len_before_change;
I'm not sure if this is the intended use for some of this, but it solves the problem.
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 615 |
Nodes: | 8 (0 / 8) |
Uptime: | 12:18:45 |
Calls: | 10,874 |
Files: | 5 |
Messages: | 516,946 |