trondelag/alice.h
1
0
Fork
You've already forked alice.h
1
TUI without libc
  • C 100%
2026年05月21日 13:44:04 +02:00
src Fixed examples according to last changes 2026年05月19日 17:06:13 +02:00
.gitignore
alice.h Added defines for Color and Styles so it needs fewer functions 2026年05月19日 16:43:19 +02:00
BUILD.c
LICENSE
README Added defines for Color and Styles so it needs fewer functions 2026年05月19日 16:43:19 +02:00

|=====================================================|
| ||\\ [] ____ || || |
| || \\ || /| _________ || || |
| || \\ | | || || | || || |
| ||===\\ | | || || |____ ||====|| |
| || \\ | | || || | || || |
| || \\ | ==== \===// |______ [] || || |
| =================================================== |
| [alice.h] [GPL-3.0] [LIBC: NO] [TUI: 1x1] |
| =================================================== |
| |
| TO COMPILE BUILD RUNNER RUN: |
| cc -nostdlib -static -fno-stack-protector \ |
| -fno-builtin BUILD.c -o COMPILE |
| ./COMPILE to then compile specified file |
| ____________ |
| [WHAT IT IS] |
| =================================================== |
| This is a small learning project where I just wish |
| to learn some basic C, as this is a skill I may |
| get use for. And best off all, a C TUI library |
| with no libc |
| |
| ______ |
| [GOAL] |
| =================================================== |
| I wish to make a usable TUI library. As I can just |
| use syscalls and I do not know C at all, I will |
| use ANSI codes for this. |
| |
| This means it's all in 1x1 blocks, but at the |
| same time eliminates unnecessary dependencies. |
| |
| ____________________ |
| [LEARNING RESOURCES] |
| =================================================== |
| Main resource for learning: |
| > https://www.youtube.com/watch?v=PaPN51Mm5qQ |
| -> In the video he uses the book: |
| 'The C Programming Language' (K&R) |
| |
| ______ |
| [TODO] |
| =================================================== |
| Add the following: |
| - [ ] Make quality of life functions like drawbox |
| - [ ] Write more examples |
| - [ ] Make guardrails to limit problems for the |
| lack of libc |
| - [ ] Malloc and free |
| - [ ] Function that auto does one prompt |
| -> With colours for the prompt and answer |
| -> Box around it styled |
| - [ ] Function that warns on main () insted of |
| _start () wich is the entry without |
| libc. Or function to make main() work |
| ______ |
| [DONE] |
| =================================================== |
| - [x] Find a better way to do colouring and effects |
| - [x] exit function to send proper end signal |
| withouth stdlib sneaking in |
| - [x] Same for main, so eliminate _start from my c |
| files |
| - [x] add arm support [aarch64] |
| - [x] be sure it works with the `-nostdlib' flag |
| - [x] be 3x sure no segfault |
| _________ |
| [LICENSE] |
| =================================================== |
| THIS IS UNDER GPL-3.0 |
|=====================================================|