This commit is contained in:
vrd
2023-05-13 21:01:44 +03:00
parent a0703143f0
commit 291168d507
3 changed files with 17 additions and 6 deletions
+9 -2
View File
@@ -4,6 +4,7 @@
#include <ncursesw/ncurses.h> #include <ncursesw/ncurses.h>
/* #include <string_view> */ /* #include <string_view> */
#include <iostream> #include <iostream>
#include <string.h>
/* using std::string_view; */ /* using std::string_view; */
using std::cout; using std::cout;
@@ -13,12 +14,18 @@ int main(int argc, char* argv[])
{ {
if(argc < 2) if(argc < 2)
{ {
cout << "Usage: tft FILES...\n"; cout << "Usage: tft FILE...\n";
return 0; return 0;
} }
if(!strcmp(argv[1], "--help"))
{
cout << "Usage: tft FILE...\n"
<< "Display the family tree in each FILE\n";
return 0;
}
init(); init();
for(int i = 1; i < argc; ++i) for(int i = 1; i < argc; ++i)
{ {
parseTftFile(argv[i]).display(); parseTftFile(argv[i]).display();
+2
View File
@@ -60,7 +60,9 @@ fd_t openOrDie(const char* path)
fd_t file = open(path, O_RDONLY); fd_t file = open(path, O_RDONLY);
if(file == -1) if(file == -1)
{ {
endwin();
std::cerr << "Can't open: " << path << '\n'; std::cerr << "Can't open: " << path << '\n';
std::cerr.flush();
exit(1); exit(1);
} }
return file; return file;
+6 -4
View File
@@ -8,14 +8,19 @@ findRelation - extend
Combine trees on the command line Combine trees on the command line
Person info
man page
Visualization: Visualization:
- zooming - zooming
- snap to selection/scroll with selection
- horizontal navigation between cousins - horizontal navigation between cousins
- color on different consoles - color on different consoles
- screen resize - screen resize
- empty tree - empty tree
- half children and main tree - half children and main tree
- distincs tree regions - distinct tree regions
Compilation Compilation
- static and dynamic ncurses - static and dynamic ncurses
@@ -27,9 +32,6 @@ Compilation
- same person can be displayed twice - same person can be displayed twice
- coordinate types for large trees - coordinate types for large trees
Backend
- move to SQLlite
Refactoring Refactoring
- comment style /* - comment style /*