BBS:      TELESC.NET.BR
Assunto:  nodesync is changing the cursor color
De:       Digital Man
Data:     Fri, 17 Apr 2026 16:39:52 -0700
-----------------------------------------------------------
  hbRenb: hcnodesync is changing the cursor color
  bBynb: hcdeon bto cDigital Man bon cSat Apr 18 2026 07:33 amn

 >   HBReNB: HCnodesync is changing the cursor color
 >   BByNB: HCDigital Man Bto Cdeon Bon CFri Apr 17 2026 01:29 pm
N >
 > Howdy,
 >
 >  > This is "not the way". You should use Ctrl-A codes (or set
 >  > console.attributes property) so that:
 >
 > I guess I dont understand why there "is a way"?

Because Synchronet support multiple terminal types, not just ANSI.

 > Nor do I understand why
 > nodesync needs to modify the screen back to a state, I would have expected
 > that be a task in console.* object if it was required at all?

nodesync() can display stuff to the screen (e.g. node messags/alerts/telegrams), so it wants to restore the "current" attribute after doing that. Sending a raw ANSI sequences changes the attribute on the terminal (well, "some" terminals) without informing Synchronet that's been done.

 > The jsobjs.html implies that nodesync will only do something to the terminal
 > (clear it), if an argument is given. Why does it need to send something to
 > the terminal anyway, no argument is given?

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.

 > It might be helpful to update that description to include console state,
 > since it is doing more than clear the terminal even without an argument.

Okay. The Baja SYNC function does the same thing, so that me helpful too:
https://synchro.net/docs/baja.html
-- 
                                            HYdigital man n(rob)

Sling Blade quote #15:
Doyle Hargraves: What'cha doin' with that lawn mower blade Karl?
Norco, CA WX: 82.0F, 15.0% humidity, 3 mph WNW wind, 0.00 inches rain/24hrs
n---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]