AmendHub

jcs

/

subtext

/

amendments

Amendments on December 9, 2021

all: err(1, ...) -> panic()

jcs made amendment 21 over 2 years ago

Amendments on December 10, 2021

console: Fix attribute storing, do output from thread

This doesn't seem to break things and makes it more responsive
jcs made amendment 22 over 2 years ago

util: Add ordinal

jcs made amendment 23 over 2 years ago

Amendments on December 12, 2021

util: Simplify ordinal, just return suffix

It's probably always going to be printed with sprintf anyway, just let
the caller handle concatenating the two
jcs made amendment 25 over 2 years ago

uthread: Fix stack issue in uthread_begin

The uthread variable on the stack will get overwritten as soon as
uthread_yield is called, so use uthread_current after the uthread
function returns
Also prevent uthread_yield from being erroneously called from main
loop
jcs made amendment 26 over 2 years ago

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

Amendments on December 13, 2021

session: Add a "who's online" command

jcs made amendment 28 over 2 years ago

console: Implement scrolling, speed up redrawing

No need to pass hints anymore, just do less math in the loop scanning
for dirty cells
jcs made amendment 29 over 2 years ago

Amendments on December 15, 2021

util: Add strlcat

jcs made amendment 30 over 2 years ago

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

session: Use new ansi() interface, add session_bar helper

jcs made amendment 33 over 2 years ago

session: Switch to session_{printf,output,output_string}

Also finish session_bar to concatenate both sides of the bar
jcs made amendment 34 over 2 years ago

Amendments on December 23, 2021

util: Remove strlc{at,py}, moved to new C library

jcs made amendment 35 over 2 years ago

ansi: Add VT52 support

jcs made amendment 36 over 2 years ago

console: More ANSI support like line insert and delete

jcs made amendment 37 over 2 years ago

chat: Start on multi-user chat

jcs made amendment 38 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 January 2, 2022

uthread: Use panic()

jcs made amendment 40 over 2 years ago