AmendHub

jcs

/

subtext

/

amendments

/

console.c

Amendments on February 21, 2022

console: Pass arrow keys through as VT100 arrow key sequences

Or at least the keycodes generated on the M0110A
jcs made amendment 80 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 22, 2022

console: Fix closing session by closing window

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

chat: Only output to a user if their output buffer can handle it

We can't directly output to another user's session from
chat_printf_line because it may call uthread_yield, which won't do
anything since it's interrupting the sender's thread. If the user's
output buffer can't handle the data, just kick them out of chat for
being too lagged.
jcs made amendment 43 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

console: More ANSI support like line insert and delete

jcs made amendment 37 over 2 years ago

Amendments on December 15, 2021

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 13, 2021

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

session: Add a "who's online" command

jcs made amendment 28 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

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

Amendments on December 9, 2021

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

jcs made amendment 21 over 2 years ago

Amendments on December 7, 2021

session: Support view templates

Properly close sessions in telnet+console
jcs made amendment 17 over 2 years ago

Amendments on December 6, 2021

console: Center window, fix line/column calculation in redraw

jcs made amendment 11 over 2 years ago

Amendments on November 30, 2021

console: Add a speed hack to pass in cell hints

Rather than having to scan the entire cell array, just update the
cells in the hints
jcs made amendment 5 over 2 years ago

telnet: Add support for telnet nodes

jcs made amendment 4 over 2 years ago