If I uncomment the line using \1\g codes, it does stay green.
On 17 Apr 2026, deon said the following...
If I uncomment the line using \1\g codes, it does stay green.
sync likely doesn't parse the ansi and doesn't know the color
changed.
during nodesync it saves known color attributes first (in this case
that would be whatever the state was before the injected ansi) and
restores them afterwards, clobbering your changes.
the ctrl-a codes get parsed and do end up updating what sync thinks
is the current color state.
Does it send the color change everytime its called, even if the resulting color change is already the current color being used by the terminal?
No.
so we have to cater to those bots that have no ansi graphics support, aside from real users who are/should using/use ansi.
Re: nodesync is changing the cursor color
By: MRO to Digital Man on Fri Apr 17 2026 08:06 pm
so we have to cater to those bots that have no ansi graphics support, aside from real users who are/should using/use ansi.
For your BBS, you can obviously do whatever you like. Immediately
disconnect clients that don't support ANSI if you wish.
nodesync() can display stuff to the screen (e.g. node messags/alerts/telegrams), so it wants to restore the "current" attribute after doing that.
nodesync *can* display the messages I mentioned above in addition to time left, pending events warnings, etc.
Does it send the color change everytime its called, even if the resulting color change is already the current color being used by the terminal?
No.
Does it send the color change everytime its called, even if the resulting color change is already the current color being used by the terminal?
No.
Correction: for Synchronet versions before v3.21, the answer was "No", but with Deuce's terminal abstraction changes introduced in v3.21, that answer is unfortuantely, "Yes". So you may see a difference for your specific test between v3.20 and v3.21(e). I plan to fix that for future Synchronet builds/releases (revert to the v3.20 behavior).
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 494928:13:47 |
| Calls: | 162 |
| Files: | 568 |
| D/L today: |
14 files (349K bytes) |
| Messages: | 74,957 |