Commit Graph

73 Commits

Author SHA1 Message Date
xfnw 2546ee5d66 contrib: viptext: avoid crash on lines of only whitespace 2024-05-06 17:54:04 -04:00
xfnw 34049fae33 small portability fixes 2024-05-04 12:10:59 -04:00
xfnw d2577db115 readme: mention PIXELSIZE 2024-05-04 09:43:44 -04:00
xfnw d7ef352661 readme: remove removed compile options 2024-05-04 09:43:44 -04:00
xfnw 962964a819 refactor line reading
this will hopefully make reading quite a bit faster in ideal conditions
and fix the deadlocks necessitating the LOSSY compile option

also remove ALPHA_AT_END for now and shrink down client_message

wiggle room for ALPHA_AT_END is no longer possible with the new line
reading anyways, no point in the extra space
2024-05-04 09:42:58 -04:00
xfnw 0ab85d5dee correct type casting of color 2024-05-04 09:37:14 -04:00
xfnw 1eafedc170 fix format string size 2024-05-03 11:24:51 -04:00
xfnw 16e9cb1141 legacy ip support
darn it tinycore
2024-05-02 12:41:56 -04:00
xfnw 7458a6f5ed move _GNU_SOURCE inside source
no point defining it via cflags if we always want to set it
2024-05-02 12:41:43 -04:00
xfnw 59dd92d738 avoid embedding directives in macro arguments
doing so is undefined behavior
2024-05-02 11:42:04 -04:00
xfnw be4ea168b7 support configuring bit depth at compile time 2024-05-02 11:32:54 -04:00
xfnw 571b7db5dc contrib: viptext: use a monospace font 2024-01-13 18:33:24 -05:00
xfnw 0a3bcde32c remove redundant else and fix formatting 2024-01-08 13:22:22 -05:00
vulpine c6ed6a3b25 add missing null to client_message
a regression in 4b147066 meant that attempting to read a pixel value
whilst there were more lines queued up would instead overwrite it
2023-11-01 19:51:38 +00:00
xfnw ddba6ff1cd switch back to sprintf+write
dprintf seems to require quite a few extra syscalls on certain
platforms, requiring allowing nonsense like filesystem access
unless we switch to a significantly more complex bpf filter.
2023-09-25 15:30:54 -04:00
xfnw 3f825f65aa fix helptext length
a regression in 933515b caused the helptext to get sent with
a stray null byte
2023-09-21 21:19:22 -04:00
xfnw 2cc6139b4c switch out starting escape code
just turn off blinking in the tty, rather than hiding the cursor which
may cause confusion after fbflut exits and affects non-ttys
2023-09-20 16:43:15 -04:00
xfnw 933515bf47 remove unnecessary sending message buffer 2023-09-20 16:13:55 -04:00
xfnw 50657bcd00 improve message on failure to open fb 2023-09-16 16:54:39 -04:00
xfnw 0a59243c15 reorder final cc step
fixes #1
2023-09-16 16:43:56 -04:00
xfnw c1d4461f02 check if recv defined before allowing 2023-09-16 16:43:11 -04:00
xfnw 92eb6af7d1 allow recv syscall 2023-09-14 17:37:56 -04:00
xfnw ed2d1d9b62 improve error messages and comments 2023-09-14 16:15:25 -04:00
xfnw 4b147066bc style changes, remove some unnecessary code 2023-09-14 15:57:32 -04:00
xfnw 7d2993a3fb put unistd back and allow munmap syscall
fixes i386 alpine
2023-09-13 22:21:33 -04:00
xfnw 526f4d0b1a mark argv constant 2023-09-13 22:15:10 -04:00
xfnw cccc2d529a switch to using bpf seccomp 2023-09-13 22:00:22 -04:00
xfnw 9d5cb5495f readme: minor improvements 2023-09-13 17:53:40 -04:00
xfnw 1c440e4ac6 format 2023-06-25 10:48:40 -04:00
xfnw c5a243df89 also add CFLAGS to final cc step 2023-01-29 17:07:33 -05:00
xfnw 118dcb8f3b speed optimised builds by default 2023-01-29 08:22:20 -05:00
xfnw 8dfced7399 add -DLOSSY option 2022-12-03 23:58:16 -05:00
xfnw d805d52e32 mention arm's -pthread weirdness in readme
see also #1
2022-12-03 21:47:57 -05:00
xfnw ce1164d1f9 clarify ALPHA_AT_END in readme 2022-12-03 21:43:46 -05:00
xfnw 3f33cf6a76 use strtok_r instead of strtok
for thread safety

fixes #2
2022-12-03 21:43:04 -05:00
xfnw c4bb914a6f more contrib scripts lol 2022-11-20 14:15:16 -05:00
xfnw def4b80f1f move defines to makefile and create ALPHA_AT_END ifdef 2022-08-23 15:07:21 -04:00
xfnw 6165cf23df fix references to line numbers 2022-08-22 22:58:31 -04:00
xfnw 4201bade6c document contrib 2022-08-20 13:04:47 -04:00
xfnw 30343b9a0e sample flut images 2022-08-20 12:44:14 -04:00
xfnw 79333d485b add contrib 2022-08-20 12:27:36 -04:00
xfnw df36973923 update gitignore 2022-08-20 12:26:59 -04:00
xfnw 02554ea547 detach threads
oops, found another memory leak lol
2022-07-20 15:02:34 -04:00
xfnw b10ab46360 try forcing seccomp on
if this fails to build because you do not support seccomp, set CFLAGS to
something else while making
2022-07-20 15:01:47 -04:00
xfnw 0299b4c0de reduce scope of variables for setting timeout 2022-07-20 14:15:25 -04:00
xfnw 0fe01249de correct include sys/signal.h -> signal.h 2022-07-19 14:57:57 -04:00
xfnw fb52c8cd05 reduce scope of thread_id 2022-07-10 11:24:32 -04:00
xfnw 86928fa990 reduce scope of command and read_to 2022-04-24 10:00:37 -04:00
xfnw 532e731e9c make the compiler not mad at me 2022-04-06 19:22:32 -04:00
xfnw e771a4bb10 remove extra null byte
i have no clue why i put that there
2022-03-14 19:47:37 -04:00