8
submitted 5 months ago by [email protected] to c/[email protected]

Hey. I have been posting this everywhere but few people seem to get what it is. Figured this will be the best place. Thanks.

top 4 comments
sorted by: hot top controversial new old
[-] [email protected] 2 points 5 months ago

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.

[-] [email protected] 0 points 5 months ago

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.

[-] [email protected] 1 points 5 months ago

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.

[-] [email protected] 1 points 5 months ago

ncurses only got 8 basic colors that all terminals support.

this post was submitted on 11 Feb 2024
8 points (90.0% liked)

C Programming Language

931 readers
11 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.

© Dennis Ritchie

🌐 https://en.cppreference.com/w/c

founded 1 year ago
MODERATORS