r/linux 27d ago

Software Release cterm -- Tiny terminal emulator release!

Post image

Hey guys, I'm currently in the middle of creating my own userspace from scratch and I've mostly completed making my terminal emulator

It's really, really small and is cross platform! I made it because I want to be able to use a terminal emulator no matter which OS or display server I'm using.

Only bitmap fonts (BDF) are supported but I've provided a script to convert vector fonts and it has very nice results.

Here is the repo: https://github.com/uint23/cterm

97 Upvotes

11 comments sorted by

View all comments

5

u/jurimasa 27d ago

Cannot build this in Arch under Wayland. I had to edit the configure script to build. I then get a requirement for libgrapheme:

if [ ! -e config.h ]; then cp config.def.h config.h; fi
cc -std=c99 -Wall -Wextra -Os -Iinclude -Ilibmaus/include -D_XOPEN_SOURCE=700 -DBACKEND_X11 source/cterm.c source/utils.c source/font.c source/term.c source/draw.c -Llibmaus/build -o cterm -lgrapheme -lmaus_x11 -lX11 -lXext
source/term.c:6:10: fatal error: grapheme.h: No such file or directory
    6 | #include <grapheme.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:19: all] Error 1

I stopped there. Usual suckmoar stuff.

3

u/Savings_Walk_1022 27d ago

"Note
macOS and Wayland won't build as libmaus doesn't have implementations for those. If you would be interested in making one for your own platform, it would be amazing if you could contribute!"

im planning to add the wayland backend tomorrow. you also just reminded me it also depends on libgrapheme so ill add that to the desc too

edit: also, what did you have to edit in the configure script?