AmendHub

jcs

/

subtext

/

amendments

/

session.c

Amendments on April 26, 2022

session: Add session_log to log with a common prefix

jcs made amendment 96 over 2 years ago

Amendments on April 21, 2022

signup: Add interactive user account creation

jcs made amendment 95 over 2 years ago

Amendments on April 19, 2022

session: Fix "then" of ternary operator in session_expand_var

jcs made amendment 94 over 2 years 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

Amendments on March 31, 2022

logger: Minor logging tweaks

jcs made amendment 91 over 2 years ago

Amendments on March 3, 2022

session: Print recent logins sorted by id descending

jcs made amendment 85 over 2 years ago

Amendments on March 1, 2022

session: Persist session logs to a separate bile db, add recent command

This file will get a lot of activity, so put it in a separate file for
easy rotation and to avoid corruption of the important user database
jcs made amendment 83 over 2 years ago

Amendments on February 21, 2022

session: Handle arrow keys in session_field_input

Handle backspace and character insertion when cursor is not at the end
of a field.
Have session_input_char return a short so we can return custom codes
> 255 for keys or other events.
jcs made amendment 81 over 2 years ago

Amendments on February 18, 2022

session: Support template variables in ternary expressions

Instead of only supporting hard-coded strings, we can now output the
value of a variable based on the conditional.
Since we're using ?: for ternary conditionals, switch variable length
character from : to | (e.g., "username|10")
jcs made amendment 77 over 2 years ago

Amendments on February 17, 2022

main+console: Import new focusable code from wallops

jcs made amendment 73 over 2 years ago

Amendments on January 29, 2022


Amendments on January 26, 2022

session: Add custom templating with {{ }}

{{B}} and {{/}} inline are much easier than using printf with ansi()
calls. Also allows some logic in templates like showing different
strings in the main menu depending on the user.
jcs made amendment 66 over 2 years ago

Amendments on January 23, 2022

session: Make ? at main menu show short menu

jcs made amendment 64 over 2 years ago

Amendments on January 22, 2022

session: Add %%PHONE_NUMBER%% variable for views

jcs made amendment 63 over 2 years ago

Amendments on January 18, 2022

focusable: Introduce focusable objects

Instead of tracking a current console, track a focusable object that
has callbacks to window-specific functions for things like keyboard
input, mouse input, updating, etc. This lets the main loop not care
about which window is getting input and lets each type of window
(console, settings, etc.) deal with input as it needs to, in its own
file.
jcs made amendment 55 over 2 years ago

Amendments on January 5, 2022

db+user: Switch database from resource files to bile format

jcs made amendment 48 over 2 years ago

Amendments on January 2, 2022

session: Add session_flush, make output routines not autoflush

This lets us flush at certain places to send it out once we've built
up a whole line or whatever to smooth out the output
jcs made amendment 42 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