q to close

This commit is contained in:
Venelin
2024-06-05 11:30:50 +03:00
parent 06186f51a2
commit 501db705d3
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ Once the tree is displayed you can navigate it using:
Enter, Space - display the selected person's tree Enter, Space - display the selected person's tree
+ - show full names + - show full names
- - show first names only - - show first names only
w - close the current tree q - close the tree
УПЪТВАНЕ НА БЪЛГАРСКИ: УПЪТВАНЕ НА БЪЛГАРСКИ:
https://vene.volconst.com/bg/tft https://vene.volconst.com/bg/tft
+1 -1
View File
@@ -9,7 +9,7 @@ enum
DISPLAY_INFO = 'i', DISPLAY_INFO = 'i',
SELECT = ' ', /* spacebar */ SELECT = ' ', /* spacebar */
CLOSE = 'w', CLOSE = 'q',
MOVE_LEFT = KEY_LEFT, /* arrows */ MOVE_LEFT = KEY_LEFT, /* arrows */
MOVE_DOWN = KEY_DOWN, MOVE_DOWN = KEY_DOWN,
+9 -3
View File
@@ -1,13 +1,16 @@
#!/bin/sh #!/bin/sh
set -e set -e
# Install location
PREFIX=/usr/local
# Compilation options
language=' language='
-std=c++17 -std=c++17
-fno-rtti -fno-rtti
-fno-exceptions -fno-exceptions
-fno-non-call-exceptions -fno-non-call-exceptions
-fno-common' -fno-common' # force each global variable to be only defined once
# force each global variable to be only defined once
optimizations=' optimizations='
-Ofast -Ofast
@@ -27,9 +30,12 @@ warnings='
other='-fno-fat-lto-objects' other='-fno-fat-lto-objects'
# Compile
cd src cd src
g++ -o tft $language $optimizations $warnings $other -DNDEBUG -pipe -s *.cpp -lncursesw g++ -o tft $language $optimizations $warnings $other -DNDEBUG -pipe -s *.cpp -lncursesw
#-static -lncursesw -ltinfo #-static -lncursesw -ltinfo
# Install
chmod 775 tft chmod 775 tft
mv tft /usr/local/bin mkdir -p ${PREFIX}/bin
mv tft ${PREFIX}/bin