diff --git a/README b/README index d84d717..392c17e 100644 --- a/README +++ b/README @@ -56,7 +56,7 @@ Once the tree is displayed you can navigate it using: Enter, Space - display the selected person's tree + - show full names - - show first names only - w - close the current tree + q - close the tree УПЪТВАНЕ НА БЪЛГАРСКИ: https://vene.volconst.com/bg/tft diff --git a/config.h b/config.h index 0a33f9c..1618cf3 100644 --- a/config.h +++ b/config.h @@ -9,7 +9,7 @@ enum DISPLAY_INFO = 'i', SELECT = ' ', /* spacebar */ - CLOSE = 'w', + CLOSE = 'q', MOVE_LEFT = KEY_LEFT, /* arrows */ MOVE_DOWN = KEY_DOWN, diff --git a/install.sh b/install.sh index 83e55aa..ed6e27a 100755 --- a/install.sh +++ b/install.sh @@ -1,13 +1,16 @@ #!/bin/sh set -e +# Install location +PREFIX=/usr/local + +# Compilation options language=' -std=c++17 -fno-rtti -fno-exceptions -fno-non-call-exceptions - -fno-common' -# force each global variable to be only defined once + -fno-common' # force each global variable to be only defined once optimizations=' -Ofast @@ -27,9 +30,12 @@ warnings=' other='-fno-fat-lto-objects' +# Compile cd src g++ -o tft $language $optimizations $warnings $other -DNDEBUG -pipe -s *.cpp -lncursesw #-static -lncursesw -ltinfo +# Install chmod 775 tft -mv tft /usr/local/bin +mkdir -p ${PREFIX}/bin +mv tft ${PREFIX}/bin