diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-07-04 00:06:02 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-07-04 00:06:02 +0200 |
commit | 0616015bc457d387dbaa86cd428f119d51511341 (patch) | |
tree | 64ed574ae19d717067d858001e2edbf0ae0ae440 | |
parent | 9edf21bd96a83a7e6c660e16c331b04e3b7add14 (diff) | |
download | messenger-cli-0616015bc457d387dbaa86cd428f119d51511341.tar.gz messenger-cli-0616015bc457d387dbaa86cd428f119d51511341.zip |
Added ASCII logo to the application
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 43 | ||||
-rw-r--r-- | resources/logo.asc | 10 | ||||
-rw-r--r-- | src/util.c | 43 | ||||
-rw-r--r-- | src/util.h | 5 |
5 files changed, 99 insertions, 4 deletions
@@ -6,6 +6,7 @@ BINARY = messenger-cli | |||
6 | SOURCES = messenger_cli.c\ | 6 | SOURCES = messenger_cli.c\ |
7 | application.c\ | 7 | application.c\ |
8 | chat.c\ | 8 | chat.c\ |
9 | util.c\ | ||
9 | ui/account_create_dialog.c\ | 10 | ui/account_create_dialog.c\ |
10 | ui/accounts.c\ | 11 | ui/accounts.c\ |
11 | ui/chat_open_dialog.c\ | 12 | ui/chat_open_dialog.c\ |
@@ -14,6 +15,7 @@ SOURCES = messenger_cli.c\ | |||
14 | ui/messages.c | 15 | ui/messages.c |
15 | HEADERS = application.h\ | 16 | HEADERS = application.h\ |
16 | chat.h\ | 17 | chat.h\ |
18 | util.h\ | ||
17 | ui/account_create_dialog.h\ | 19 | ui/account_create_dialog.h\ |
18 | ui/accounts.h\ | 20 | ui/accounts.h\ |
19 | ui/chat.h\ | 21 | ui/chat.h\ |
@@ -2,8 +2,43 @@ | |||
2 | 2 | ||
3 | A CLI for the Messenger service of GNUnet. | 3 | A CLI for the Messenger service of GNUnet. |
4 | 4 | ||
5 | ## (Planned) Dependencies | 5 | ``` |
6 | |||
7 | o o | ||
8 | ooo oo | ||
9 | ooooo ooooo | ||
10 | oo ooo | ||
11 | oo ooo | ||
12 | ooooooo | ||
13 | oooooo | ||
14 | oooo | ||
15 | |||
16 | |||
17 | ``` | ||
18 | |||
19 | ## Build & Installation | ||
20 | |||
21 | The following dependencies are required and need to be installed to build the application: | ||
22 | |||
23 | - [gnunet](https://git.gnunet.org/gnunet.git/): For using general GNUnet datatypes | ||
24 | - [libgnunetchat](https://git.gnunet.org/libgnunetchat.git/): For chatting via GNUnet messenger | ||
25 | - [ncurses](https://www.gnu.org/software/ncurses/): For the general UI visualization | ||
26 | |||
27 | Then you can simply use the provided Makefile as follows: | ||
28 | |||
29 | - `make` to just compile everything with default parameters | ||
30 | - `make clean` to cleanup build files in case you want to recompile | ||
31 | - `make debug` to compile everything with debug parameters | ||
32 | - `make release` to compile everything with build optimizations enabled | ||
33 | - `make install` to install the compiled files (you might need sudo permissions to install) | ||
34 | |||
35 | ## Contribution | ||
36 | |||
37 | If you want to contribute to this project as well, the following options are available: | ||
38 | |||
39 | - Contribute directly to the [source code](https://git.gnunet.org/messenger-cli.git/) with patches to fix issues, implement new features or improve the usability. | ||
40 | - Open issues in the [bug tracker](https://bugs.gnunet.org/bug_report_page.php) to report bugs, issues or missing features. | ||
41 | - Contact the authors of the software if you need any help to contribute (testing is always an option). | ||
42 | |||
43 | The list of all previous authors can be viewed in the provided [file](AUTHORS). | ||
6 | 44 | ||
7 | - [gnunet](https://git.gnunet.org/gnunet.git/) | ||
8 | - [libgnunetchat](https://git.gnunet.org/libgnunetchat.git/) | ||
9 | - [ncurses](https://www.gnu.org/software/ncurses/) | ||
diff --git a/resources/logo.asc b/resources/logo.asc new file mode 100644 index 0000000..ddc43ad --- /dev/null +++ b/resources/logo.asc | |||
@@ -0,0 +1,10 @@ | |||
1 | |||
2 | o o | ||
3 | ooo oo | ||
4 | ooooo ooooo | ||
5 | oo ooo | ||
6 | oo ooo | ||
7 | ooooooo | ||
8 | oooooo | ||
9 | oooo | ||
10 | |||
diff --git a/src/util.c b/src/util.c new file mode 100644 index 0000000..d32eb6e --- /dev/null +++ b/src/util.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2022 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /* | ||
21 | * @author Tobias Frisch | ||
22 | * @file util.c | ||
23 | */ | ||
24 | |||
25 | #include "util.h" | ||
26 | |||
27 | void | ||
28 | util_print_logo(WINDOW *window) | ||
29 | { | ||
30 | int x = getcurx(window); | ||
31 | int y = getcury(window); | ||
32 | |||
33 | wmove(window, x, y++); wprintw(window, " "); | ||
34 | wmove(window, x, y++); wprintw(window, " o/ \\o "); | ||
35 | wmove(window, x, y++); wprintw(window, " ooo oo "); | ||
36 | wmove(window, x, y++); wprintw(window, " \\oooo\\ /oooo/ "); | ||
37 | wmove(window, x, y++); wprintw(window, " oo ooo "); | ||
38 | wmove(window, x, y++); wprintw(window, " oo ooo "); | ||
39 | wmove(window, x, y++); wprintw(window, " ooooooo "); | ||
40 | wmove(window, x, y++); wprintw(window, " \\oooo/ "); | ||
41 | wmove(window, x, y++); wprintw(window, " oooo "); | ||
42 | wmove(window, x, y++); wprintw(window, " "); | ||
43 | } | ||
@@ -26,7 +26,12 @@ | |||
26 | #define UTIL_H_ | 26 | #define UTIL_H_ |
27 | 27 | ||
28 | #include <stdbool.h> | 28 | #include <stdbool.h> |
29 | #include <stdlib.h> | ||
30 | #include <curses.h> | ||
29 | 31 | ||
30 | #define UNUSED __attribute__((unused)) | 32 | #define UNUSED __attribute__((unused)) |
31 | 33 | ||
34 | void | ||
35 | util_print_logo(WINDOW *window); | ||
36 | |||
32 | #endif /* UTIL_H_ */ | 37 | #endif /* UTIL_H_ */ |