Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    SYNC_PROGRAMMING    |    Synchronet/Baja/XSDK Programming    |    49,116 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 47,235 of 49,116    |
|    Digital Man to Darkside920    |
|    Synchronet Door ANSI output    |
|    21 Sep 25 13:20:34    |
      TZUTC: -0700       MSGID: 52634.syncprog@1:103/705 2d3661ac       REPLY: 52632.syncprog@1:103/705 2d358886       PID: Synchronet 3.21a-Linux master/869dac47e Sep 14 2025 GCC 12.2.0       TID: SBBSecho 3.29-Linux master/4a80117da Sep 19 2025 GCC 12.2.0       COLS: 80       BBSID: VERT       CHRS: CP437 2       FORMAT: flowed       NOTE: FSEditor.js v1.105        Re: Synchronet Door ANSI output        By: Darkside920 to All on Sat Sep 20 2025 09:54 pm               > Hey all! I'm trying to write a door game in C++ and use it on my Sync        > install. Not for profit or anything, but to develop my coding skills (which        > are currently awful).        >        > The project I'm working on is a blackjack game (not original, I know -        > please don't judge too harshly). This has already taught me a lot about C++,        > and I'm sure I'll learn a lot more as I go.              You can look at your Synchronet xtrn/sbj directory for an example Blackjack       door game written (for Synchronet) in C.               > Having overcome several hurdles, I'm at a loss with displaying the card        > suits using ANSI character codes. The ANSI color codes are working, but the        > suits show up as 3 accented letters, rather than the suit "icons."              Sounds like you're sending UTF-8 encoded characters to a non-UTF-8 terminal       (would be my guess). Most BBS terminals (clients, e.g. SyncTERM, etc.) don't       support UTF-8, but rather CP437 characters in straight 8-bit encoding. If the       user's terminal supports CP437, then you want to send the control characters       (low ASCII values) which correspond to those card symbols in the CP437       character set. Look up CP437 for details.               > When I run the app locally (on the same machine Sync is running on), the        > suits show correctly.              Probably because when run locally, you're using a console/terminal that       supports UTF-8.               > I'm wondering if I need to change a setting in SCFG or even change how I'm        > creating the suit icons.        >        > Any ideas?              My first idea is that I would write a new door game for Synchronet in       JavaScript, not C or C++. That would be a lot easier. But if you're dead set       on C++, then you need to learn about terminal capabilities, emulation, and       character encoding and handle those differences in your own code (e.g. sending       CP437 to a UTF-8 terminal will look like garbage, and vice versa).       --         digital man (rob)              Steven Wright quote #18:       Hard work pays off in the future; laziness pays off now.       Norco, CA WX: 74.5øF, 66.0% humidity, 1 mph WNW wind, 0.00 inches rain/24hrs       --- SBBSecho 3.29-Linux        * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)       SEEN-BY: 103/705 105/81 106/201 124/5016 128/187 129/14 153/757 7715       SEEN-BY: 154/10 30 110 203/0 218/700 221/0 226/30 227/114 229/110       SEEN-BY: 229/206 317 400 426 428 470 700 705 240/1120 5832 263/1 266/512       SEEN-BY: 280/464 5003 5006 291/111 292/8125 301/1 320/219 322/757       SEEN-BY: 341/66 234 342/200 396/45 423/120 460/58 467/888 633/280       SEEN-BY: 712/848 770/1 902/26 5020/400 5075/35       PATH: 103/705 280/464 712/848 229/426           |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca