diff --git a/CMakeLists.txt b/CMakeLists.txt index bfaa793ad..3677acfc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -560,15 +560,15 @@ target_link_libraries(notcurses-input ) ############################################################################ -# notcurses-tetris +# nctetris file(GLOB TETRISSRC CONFIGURE_DEPENDS src/tetris/*.cpp) -add_executable(notcurses-tetris ${TETRISSRC}) -target_include_directories(notcurses-tetris +add_executable(nctetris ${TETRISSRC}) +target_include_directories(nctetris PRIVATE include "${PROJECT_BINARY_DIR}/include" ) -target_link_libraries(notcurses-tetris +target_link_libraries(nctetris PRIVATE notcurses++ ) @@ -770,7 +770,7 @@ install(FILES ${MARKDOWN} DESTINATION ${CMAKE_INSTALL_DOCDIR}) install(TARGETS notcurses-demo DESTINATION bin) install(TARGETS notcurses-input DESTINATION bin) -install(TARGETS notcurses-tetris DESTINATION bin) +install(TARGETS nctetris DESTINATION bin) if(NOT ${USE_MULTIMEDIA} STREQUAL "none") install(TARGETS ncneofetch DESTINATION bin) install(TARGETS ncls DESTINATION bin) diff --git a/NEWS.md b/NEWS.md index 65f296d33..5c4003802 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,9 @@ This document attempts to list user-visible changes and any major internal rearrangements of Notcurses. +* 2.1.8 (not yet released): + * The `notcurses-tetris` binary has been renamed `nctetris`. + * 2.1.7 (2021-01-21): * Notcurses has been split into two libraries, `notcurses-core` and `notcurses`. The latter contains the heavyweight multimedia code, diff --git a/README.md b/README.md index f331bd6a0..0203988d4 100644 --- a/README.md +++ b/README.md @@ -131,13 +131,13 @@ may well be possible to use still older versions. Let me know of any successes! ## Included tools Seven binaries are installed as part of Notcurses: -* `notcurses-demo`: some demonstration code * `ncls`: an `ls` that displays multimedia in the terminal * `ncneofetch`: a [neofetch](https://github.com/dylanaraps/neofetch) ripoff * `ncplayer`: renders visual media (images/videos) +* `nctetris`: a tetris clone +* `notcurses-demo`: some demonstration code * `notcurses-input`: decode and print keypresses * `notcurses-tester`: unit testing -* `notcurses-tetris`: a tetris clone To run `notcurses-demo` from a checkout, provide the `tests/` directory via the `-p` argument. Demos requiring data files will otherwise abort. The base diff --git a/doc/man/index.html b/doc/man/index.html index 9e53365f1..0a07987cf 100644 --- a/doc/man/index.html +++ b/doc/man/index.html @@ -32,12 +32,12 @@ ncls—list files, displaying multimedia along with them
ncneofetch—generate low-effort posts for r/unixporn
ncplayer—renders images and video to a terminal
+ nctetris—Tetris in a terminal
notcurses-demo—shows off some notcurses features
notcurses-direct-pydemo—validates the Python direct-mode wrappers
notcurses-input—reads and decodes input events
notcurses-pydemo—validates the Python wrappers
notcurses-tester—unit test driver
- notcurses-tetris—Tetris in a terminal

C library (section 3)

notcurses_capabilities—runtime capability detection
diff --git a/doc/man/man1/notcurses-tetris.1.md b/doc/man/man1/nctetris.1.md similarity index 82% rename from doc/man/man1/notcurses-tetris.1.md rename to doc/man/man1/nctetris.1.md index 846c30d25..a0e7efc82 100644 --- a/doc/man/man1/notcurses-tetris.1.md +++ b/doc/man/man1/nctetris.1.md @@ -1,18 +1,18 @@ -% notcurses-tetris(1) +% nctetris(1) % nick black % v2.1.7 # NAME -notcurses-tetris - Render images and video to a terminal +nctetris - Render images and video to a terminal # SYNOPSIS -**notcurses-tetris** [**-h|--help**] [**-l loglevel**] +**nctetris** [**-h|--help**] [**-l loglevel**] # DESCRIPTION -**notcurses-tetris** implements Tetris using notcurses. +**nctetris** implements Tetris using Notcurses. The goal is to complete horizontal lines, without allowing tetriminos to reach the top of the screen. The falling tetrimino can be rotated counter- diff --git a/doc/testing-checklist.md b/doc/testing-checklist.md index 2976e0e49..238a0ca9e 100644 --- a/doc/testing-checklist.md +++ b/doc/testing-checklist.md @@ -19,5 +19,5 @@ Run, using `valgrind --tool=memcheck --leak-check=full`: terminal geometries: square, tall, wide * `notcurses-demo` with margins * `notcurses-demo` with FPS plot and HUD up -* Play a game of `notcurses-tetris` +* Play a game of `nctetris` * Run each PoC binary, including `ncpp_build` and `ncpp_build_exceptions`