Add license

Signed-off-by: 0xf8 <0xf8.dev@proton.me>
This commit is contained in:
0xf8 2023-02-25 12:06:52 -05:00
parent fdbca41c12
commit fcb6abb194
Signed by: 0xf8
GPG Key ID: 446580D758689584
3 changed files with 36 additions and 8 deletions

View File

@ -6,13 +6,19 @@ A nice little clock app.
- Right side of the `|` is the minute - Right side of the `|` is the minute
- The highlighted number is the second - The highlighted number is the second
# Dependencies ## Dependencies
- ncurses - ncurses
- clang - clang
- make - make
# Compiling ## Compiling
`make` `make`
# Running ## Running
`./tempus` `./tempus`
## License
This program is released under the GPL3.0 license. This is available at https://www.gnu.org/licenses/gpl-3.0.html
## Copyright
Copyright 2022 g.uwu@tutanota.com

View File

@ -1,3 +1,16 @@
/*
Copyright 2022 g.uwu@tutanota.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "./main.h" #include "./main.h"
#include <curses.h> #include <curses.h>
#include <stdlib.h> #include <stdlib.h>
@ -87,7 +100,7 @@ int main(int argc, char **argv) {
// tests // tests
struct timespec remaining, request = {SECS_TO_SLEEP, NSEC_TO_SLEEP}; struct timespec remaining, request = {SECS_TO_SLEEP, NSEC_TO_SLEEP};
WINDOW *w = initscr(); initscr();
int rows = LINES - 1; int rows = LINES - 1;
int cols = COLS - 1; int cols = COLS - 1;
int midr = rows/2; int midr = rows/2;
@ -120,10 +133,6 @@ int main(int argc, char **argv) {
int minu = (min - minl) / 10; int minu = (min - minl) / 10;
int sec = lc->tm_sec; int sec = lc->tm_sec;
// print_number
// #hour
int sy = 0, sx = 0;
struct bignumber_t *bn_houru = bignumber(00, 0, houru); struct bignumber_t *bn_houru = bignumber(00, 0, houru);
struct bignumber_t *bn_hourl = bignumber(15, 1, hourl); struct bignumber_t *bn_hourl = bignumber(15, 1, hourl);

View File

@ -1,3 +1,16 @@
/*
Copyright 2022 g.uwu@tutanota.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __MAIN_H__ #ifndef __MAIN_H__
#define __MAIN_H__ #define __MAIN_H__