lay groundwork for ncneofetch #550

pull/730/head
nick black 4 years ago committed by Nick Black
parent 5608b8735e
commit ffab8b5294

@ -435,6 +435,19 @@ if(USE_DOXYGEN)
endif()
endif()
# ncneofetch
file(GLOB FETCHSRCS CONFIGURE_DEPENDS src/fetch/*.c)
add_executable(ncneofetch ${FETCHSRCS})
target_include_directories(ncneofetch
PRIVATE
include
"${PROJECT_BINARY_DIR}/include"
)
target_link_libraries(ncneofetch
PRIVATE
notcurses
)
# notcurses-input
file(GLOB INPUTSRCS CONFIGURE_DEPENDS src/input/input.cpp)
add_executable(notcurses-input ${INPUTSRCS})
@ -665,6 +678,7 @@ install(PROGRAMS src/pydemo/notcurses-pydemo DESTINATION bin)
install(TARGETS notcurses-demo DESTINATION bin)
install(TARGETS notcurses-input DESTINATION bin)
install(TARGETS notcurses-ncreel DESTINATION bin)
install(TARGETS ncneofetch DESTINATION bin)
if(${BUILD_TESTING})
install(TARGETS notcurses-tester DESTINATION bin)
endif()

@ -171,6 +171,7 @@ Six binaries are installed as part of notcurses:
* `notcurses-planereels`: play around with ncreels
* `notcurses-tester`: unit testing
* `notcurses-tetris`: a tetris clone
* `ncneofetch`: a [neofetch](https://github.com/dylanaraps/neofetch) ripoff
To run `notcurses-demo` from a checkout, provide the `tests/` directory via
the `-p` argument. Demos requiring data files will otherwise abort. The base

@ -25,6 +25,7 @@
<h1><a href="https://nick-black.com/dankwiki/index.php/Notcurses">notcurses</a> man pages (v1.5.1)</h1>
<a href="notcurses.3.html">notcurses(3)</a>—a blingful TUI library<br/>
<h2>Binaries (section 1)</h2>
<a href="ncneofetch.1.html">ncneofetch</a>—generate low-effort posts for r/unixporn<br/>
<a href="notcurses-demo.1.html">notcurses-demo</a>—shows off some notcurses features<br/>
<a href="notcurses-input.1.html">notcurses-input</a>—reads and decodes input events<br/>
<a href="notcurses-ncreel.1.html">notcurses-ncreel</a>—experiments with ncreels<br/>

@ -0,0 +1,31 @@
% ncneofetch(1)
% nick black <nickblack@linux.com>
% v1.5.1
# NAME
ncneofetch - Generate low-effort posts for r/unixporn
# SYNOPSIS
**ncneofetch**
# DESCRIPTION
**ncneofetch** renders an image (typically a distribution logo)
and displays some system information. It is a blatant ripoff of
**neofetch(1)** using **notcurses(3)**.
# OPTIONS
# NOTES
Optimal display requires a terminal advertising the **rgb** terminfo(5)
capability, or that the environment variable **COLORTERM** is defined to
**24bit** (and that the terminal honors RGB escapes), along with a good
monospaced font supporting the Unicode Block Drawing Characters.
# SEE ALSO
**neofetch(1)**,
**notcurses(3)**

@ -0,0 +1,9 @@
#include <notcurses/notcurses.h>
int main(int argc, const char** argv){
struct notcurses* nc = notcurses_init(NULL, NULL);
if(nc == NULL){
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
Loading…
Cancel
Save