BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/terminal.h
De:       Rob Swindell (on Windows
Data:     Thu, 29 Jan 2026 22:43:00 -0800
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/37cb8b51aea480d973f8978c
Modified Files:
	src/sbbs3/terminal.h
Log Message:
bstrlen() handles more control chars (\b, \r, \n) and ^A[, ^A] and ^A/

^A/ isn't exact here since it really needs to compare against the output
column (which could auto-wrap when long), not the counted display width, but
it's more accurate than ignoring it.

I tested it like this (from within the BBS):

- console.strlen("testx\r\ntest1234")
  Result (number): 5

- console.strlen("testx\rtest1234")
  Result (number): 8

- console.strlen("testx\x01[test1234")
  Result (number): 8

Previously, those would produce incorrect numbers like, e.g. 15, 14
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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