Compare commits

...

3 Commits

Author SHA1 Message Date
Přemysl Eric Janouch e08c63fe89
Bump dependencies 2021-11-16 11:58:29 +01:00
Přemysl Eric Janouch edd849800a
CMakeLists.txt: fix macOS build 2021-11-16 11:55:24 +01:00
Přemysl Eric Janouch 023d69bdbf
Rename the project
The old name had its context, but now it's mostly just confusing.

Make it netdraw with an extra 'e'.
2021-11-16 11:52:54 +01:00
8 changed files with 26 additions and 24 deletions

12
.gitignore vendored
View File

@ -3,9 +3,9 @@
# Qt Creator files # Qt Creator files
/CMakeLists.txt.user* /CMakeLists.txt.user*
/autistdraw.config /neetdraw.config
/autistdraw.files /neetdraw.files
/autistdraw.creator* /neetdraw.creator*
/autistdraw.includes /neetdraw.includes
/autistdraw.cflags /neetdraw.cflags
/autistdraw.cxxflags /neetdraw.cxxflags

View File

@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.0) cmake_minimum_required (VERSION 3.0)
project (autistdraw VERSION 0.1.0 LANGUAGES C) project (neetdraw VERSION 0.1.0 LANGUAGES C)
# Moar warnings # Moar warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC) if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
@ -42,6 +42,8 @@ if ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
# Need this for SIGWINCH in FreeBSD and OpenBSD respectively; # Need this for SIGWINCH in FreeBSD and OpenBSD respectively;
# our POSIX version macros make it undefined # our POSIX version macros make it undefined
add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1) add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1)
elseif (APPLE)
add_definitions (-D_DARWIN_C_SOURCE)
endif () endif ()
set (project_libraries ${LibEV_LIBRARIES} ${Termo_LIBRARIES} set (project_libraries ${LibEV_LIBRARIES} ${Termo_LIBRARIES}

View File

@ -1,9 +1,9 @@
autistdraw neetdraw
========== ========
'autistdraw' is a terminal drawing application with multiplayer support. 'neetdraw' is a terminal drawing application with multiplayer support.
image::autistdraw.png[align="center"] image::neetdraw.png[align="center"]
Packages Packages
-------- --------
@ -15,9 +15,9 @@ Building
Build dependencies: CMake, pkg-config, liberty (included), termo (included) + Build dependencies: CMake, pkg-config, liberty (included), termo (included) +
Runtime dependencies: ncursesw, libev Runtime dependencies: ncursesw, libev
$ git clone --recursive https://git.janouch.name/p/autistdraw.git $ git clone --recursive https://git.janouch.name/p/neetdraw.git
$ mkdir autistdraw/build $ mkdir neetdraw/build
$ cd autistdraw/build $ cd neetdraw/build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
$ make $ make
@ -28,21 +28,21 @@ To install the application, you can do either the usual:
Or you can try telling CMake to make a package for you. For Debian it is: Or you can try telling CMake to make a package for you. For Debian it is:
$ cpack -G DEB $ cpack -G DEB
# dpkg -i autistdraw-*.deb # dpkg -i neetdraw-*.deb
Usage Usage
----- -----
For standalone mode you can run the program without arguments: For standalone mode you can run the program without arguments:
$ autistdraw $ neetdraw
To run as a server for other clients to connect to and draw simultaneously: To run as a server for other clients to connect to and draw simultaneously:
$ autistdraw -s :1234 $ neetdraw -s :1234
To connect to a running server, run: To connect to a running server, run:
$ autistdraw -c localhost:1234 $ neetdraw -c localhost:1234
Once you have the program running, simply select a colour you like from the Once you have the program running, simply select a colour you like from the
palette and draw by pressing and dragging the mouse. Use the middle mouse palette and draw by pressing and dragging the mouse. Use the middle mouse
@ -66,7 +66,7 @@ you flood the communication channel with the terminal.
Contributing and Support Contributing and Support
------------------------ ------------------------
Use https://git.janouch.name/p/autistdraw to report any bugs, request features, Use https://git.janouch.name/p/neetdraw to report any bugs, request features,
or submit pull requests. `git send-email` is tolerated. If you want to discuss or submit pull requests. `git send-email` is tolerated. If you want to discuss
the project, feel free to join me at ircs://irc.janouch.name, channel #dev. the project, feel free to join me at ircs://irc.janouch.name, channel #dev.

View File

@ -1,7 +1,7 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
#define PROGRAM_NAME "${CMAKE_PROJECT_NAME}" #define PROGRAM_NAME "${PROJECT_NAME}"
#define PROGRAM_VERSION "${PROJECT_VERSION}" #define PROGRAM_VERSION "${PROJECT_VERSION}"
#cmakedefine HAVE_RESIZETERM #cmakedefine HAVE_RESIZETERM

@ -1 +1 @@
Subproject commit 1b9d89cab3bb1df73c58ccd8528eafd21a8c6e40 Subproject commit 782a9a5977bd5f2101e8808b94d659fe52e2490a

View File

@ -1,5 +1,5 @@
/* /*
* autistdraw.c: terminal drawing for NEET autists^Wartists * neetdraw.c: terminal drawing application with multiplayer support
* *
* Copyright (c) 2014, Přemysl Eric Janouch <p@janouch.name> * Copyright (c) 2014, Přemysl Eric Janouch <p@janouch.name>
* *
@ -1415,7 +1415,7 @@ parse_program_arguments (struct app_options *options, int argc, char **argv)
}; };
struct opt_handler oh = opt_handler_make (argc, argv, opts, struct opt_handler oh = opt_handler_make (argc, argv, opts,
NULL, "Terminal drawing for NEET autists^Wartists"); NULL, "Terminal drawing application with multiplayer support");
int c; int c;
while ((c = opt_handler_get (&oh)) != -1) while ((c = opt_handler_get (&oh)) != -1)

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

2
termo

@ -1 +1 @@
Subproject commit 94a77a10d87367ef33156cd68b2caf601c3f72d0 Subproject commit 8265f075b176b33680012094aa1ced5721e55ac9