AmendHub

jcs

/

subtext

/

amendments

/

util.c

Amendments on July 11, 2022

util: Fix return of FIsDir when FStat fails

jcs made amendment 187 about 1 year ago

Amendments on June 21, 2022

blanker: Add a simple screen blanker

This will trigger after the configured number of idle seconds, when
there are no active sessions. A mouse click or key press will unblank
right away, otherwise it will unblank automatically after the
configured number of runtime seconds.
This is a more CPU-friendly alternative to a normal screen saver, and
it will only run for a short amount of time to do its job of blanking
the screen to prevent burn-in.
jcs made amendment 159 about 1 year ago

Amendments on June 16, 2022


Amendments on June 13, 2022


Amendments on June 7, 2022

util: vwarn can't re-use its alert DITL handle, make a new one

But still pre-allocate one at startup
jcs made amendment 122 about 1 year ago

Amendments on June 1, 2022

util: Pre-alloc alert ditl handle, get rid of xmallocarray

calloc does what this did, who knew?
Avoid dynamic allocation in vwarn() so errors about OOM conditions
can succeed
jcs made amendment 112 about 1 year ago

Amendments on May 15, 2022

*: Lots of little cleanup

Remove unused variables and fix some returns
Found by compiling with Clang
jcs made amendment 101 about 1 year ago

Amendments on March 17, 2022

util: get_version: Look for vers 1 like Finder

jcs made amendment 86 over 2 years ago

Amendments on February 10, 2022

util: Sync with upstream

jcs made amendment 70 over 2 years ago

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 22, 2022

util: Fix some panic() strings

jcs made amendment 62 over 2 years ago

Amendments on January 18, 2022


Amendments on January 14, 2022

util: Sync with files from Amend

jcs made amendment 51 over 2 years ago

Amendments on January 4, 2022

util: Make vwarn and friends use a custom dialog without needing a Res

This way we can use panic() and things in new tiny projects without
having to build a resource file first
jcs made amendment 45 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

Amendments on December 15, 2021

util: Add strlcat

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

Amendments on December 10, 2021

util: Add ordinal

jcs made amendment 23 over 2 years ago

Amendments on December 9, 2021