AmendHub

jcs

/

subtext

/

amendments

/

console.c

Amendments on November 27, 2023

user: Add user_first_sysop_id()

The username can be found from this, but just returning a username
is harder to find an id for.
jcs made amendment 562 4 months ago

Amendments on November 19, 2023

console: Revert previous, this was just an off-by-one

Clamping is done during CSI handling, so if we get here and we're
still out of bounds, this should panic.
jcs made amendment 554 5 months ago

console: Don't panic when cursor is out of bounds, just clamp it

This is how our terminal size probing works, after all.
jcs made amendment 553 5 months ago

Amendments on November 17, 2023


Amendments on April 10, 2023

console: Dismiss any progress dialog before opening

jcs made amendment 479 about 1 year ago

session: Remove cp437 from struct, it was never used

jcs made amendment 474 about 1 year ago

Amendments on March 8, 2023

console: Minor fixes suggested by cppcheck

jcs made amendment 372 about 1 year ago

Amendments on March 2, 2023

console: Handle malloc failure

jcs made amendment 337 about 1 year ago

Amendments on February 5, 2023

*: Minor fixes found by cppcheck and scan-build

Mostly unused variables
jcs made amendment 300 about 1 year ago

Amendments on August 14, 2022

logger: Add buffered logging, support logging without updating window

During telnet negotiation, many lines are logged in quick succession
which means we spend a lot of time updating the log TextEdit. Just
buffer these logs and spit them out all at once upon login or
disconnection, so the user's login prompt is immediately responsive.
Rename session_log to session_logf while I'm in here, to reflect that
it's a format-string function.
jcs made amendment 245 about 1 year ago

Amendments on August 13, 2022

session: Don't set default terminal type, if node doesn't, prompt user

This way modem users and telnet users with weird clients that don't
negotiate TTYPE will get prompted for vt100 compatibility.
jcs made amendment 243 about 1 year ago

Amendments on July 31, 2022

*: Add malloc annotations

jcs made amendment 226 about 1 year ago

Amendments on July 21, 2022

*: Use NewPtr instead of malloc, add malloc and free debugging

Instead of free(ptr), use xfree(&ptr) and after it calls
DisposePtr(ptr), it will update ptr to point at NULL to catch
use-after-frees.
When MALLOC_DEBUG is defined, each allocation is added to a
list, and removed when freed. If it's not in the list at free
time, it's a double-free. Also, instead of pointing pointers at
NULL, point them to a pre-defined block of zeroes and in the
idle loop, periodically check that this block is still zero. This
will also catch use-after-frees in a more reliable (but costly)
way.
jcs made amendment 220 about 1 year ago

Amendments on July 16, 2022

*: Properly handle running out of sessions

Limit sessions to the number of uthreads we can handle, and then
reserve 1 session for the console.
In telnet, allocate one extra node so we can print a message to the
client that we have no free nodes, and then disconnect. Add a view
for this to make it editable.
In console, handle getting a null session back from session_create.
jcs made amendment 211 about 1 year ago

Amendments on June 24, 2022

logger: Keep title updated with some call information

jcs made amendment 174 about 1 year ago

Amendments on June 23, 2022

console: Ensure port is set before redrawing

jcs made amendment 171 about 1 year ago

Amendments on June 15, 2022

session: Do session close log from each node type

jcs made amendment 143 about 1 year ago

Amendments on June 3, 2022

user_settings: Support changing usernames

jcs made amendment 119 about 1 year ago

Amendments on April 28, 2022

user_settings: Add user settings menu

Currently allows changing passwords and renegotiating the terminal
jcs made amendment 97 about 1 year ago

Amendments on April 14, 2022

focusable: Move code to separate file, fix a bunch of bugs here

Fix drawing on the wrong window, drawing in the wrong font, crash at
exit, etc.
jcs made amendment 92 over 2 years ago