this post was submitted on 11 Feb 2024
8 points (90.0% liked)
C Programming Language
993 readers
1 users here now
Welcome to the C community!
C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.
- irc: #c
🌐 https://en.cppreference.com/w/c
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This looks great! Does it work well with bat? Could be helpful to use your pager for markdown together with bat since it can do syntax highlighting but doesn’t format.
What is Bat? Is it a terminal emulator? In that case, if Bat is compliant with an standard which ncurses is compliant to -- i.e most of them, it should work fine. Mind you that there are some rough patches, and some flavors of MD are not supported (yet). If you can link me to bat please do, I am not sure what it is to narrow down the search. Thanks.
Bat seems to be a syntax highlighting cat that calls a pager by default.
I would require your program to pass along any formatting (manly colors) that it receives while adding its own.
ncurses only got 8 basic colors that all terminals support.