AmendHub

jcs

/

subtext

/

amendments

/

ansi.c

Amendments on March 15, 2023

ansi: Fix panic message

jcs made amendment 425 about 1 year ago

Amendments on March 8, 2023

ansi: Bound sscanf char assignment

jcs made amendment 369 about 1 year ago

Amendments on March 2, 2023

ansi: Cope with malloc failure

jcs made amendment 334 about 1 year ago

Amendments on February 22, 2023

ansi: Still run through args for non-vt100/52, do backspace with \b

\b is ASCII 8, \10 in octal
jcs made amendment 307 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 July 31, 2022

*: Add malloc annotations

jcs made amendment 226 about 1 year ago

Amendments on June 28, 2022

ansi: Remove unused sprintf parameter

jcs made amendment 175 about 1 year ago

Amendments on June 17, 2022

session: Don't run all session_printf formats through expand_template

session_expand_template is only needed for actual template views and
is pretty expensive. We only really need support for bolding and
resetting in session_printf.
This had the side effect of converting all bare \r's in session_printf
to \r\n, which screwed up ANSI output that was trying to just jump
back to the beginning of the line, like chat output.
jcs made amendment 155 about 1 year ago

Amendments on June 13, 2022

session: Remove session_output_string, enforce login timeout

jcs made amendment 142 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 February 21, 2022

ansi: Add ANSI_FORWARD_N

jcs made amendment 79 over 2 years ago

Amendments on December 31, 2021

*: Lots of unrelated changes lost to repo corruption :(

session: Better handle autologin, look like it's actually logging in
main: Handle GoAway, stop using WaitNextEvent
ansi: Terminate calls to ansi() with ANSI_END instead of NULL
chat: Implement /help and /quit
console: Lots of speed improvements
*: Standarize on "column" and "line"
session: Various bugfixes, mark ending sessions and check everywhere
console: Fix attr resetting in redraw, fixes one-char bold items
session: Support specific-width varible expansion in session_load_view
jcs made amendment 39 over 2 years ago

Amendments on December 23, 2021

ansi: Add VT52 support

jcs made amendment 36 over 2 years ago

Amendments on December 15, 2021

ansi: New variadic interface to generating ANSI strings

Callers can pass an unlimited number of ANSI attributes, terminating
the list with NULL.
Also add ansi_strip() which returns the length of the string with
ANSI escape codes removed, optionally storing the stripped string in
a newly allocated variable.
jcs made amendment 31 over 2 years ago

Amendments on December 12, 2021

ansi: Move ANSI output stuff to dedicated files

Start tallying sessions to be stored in the future
jcs made amendment 27 over 2 years ago