2026 Cleanup , first windows working instructions, removed json.hpp, added pictures
This commit is contained in:
parent
c8d22319e7
commit
1473719a87
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
poomer-ftxui-modal_select
|
poomer-ftxui-modal_select
|
||||||
|
|
||||||
Copyright (c) 2025 Harvey Fong
|
Copyright (c) 2026 Harvey Fong
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
19
README.md
19
README.md
@ -12,6 +12,11 @@ FTXUI is a library that allows you to create text-based user interfaces.
|
|||||||
It is a lightweight library that is easy to use and understand.
|
It is a lightweight library that is easy to use and understand.
|
||||||
It is a modern C++ library that provides a functional approach to building terminal applications.
|
It is a modern C++ library that provides a functional approach to building terminal applications.
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -30,6 +35,7 @@ cmake -B ./build
|
|||||||
cmake --build ./build -j$(nproc)
|
cmake --build ./build -j$(nproc)
|
||||||
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
|
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
|
||||||
cd ../poomer-ftxui-modal_select
|
cd ../poomer-ftxui-modal_select
|
||||||
|
wget https://github.com/nlohmann/json/releases/download/v3.12.0/json.hpp
|
||||||
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
||||||
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
||||||
./poomer-ftxui-modal_select
|
./poomer-ftxui-modal_select
|
||||||
@ -41,7 +47,7 @@ g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../F
|
|||||||
xcode-select --install
|
xcode-select --install
|
||||||
|
|
||||||
mkdir workdir && cd workdir
|
mkdir workdir && cd workdir
|
||||||
mkdir cmake FTXUI poomer-ftxui-modal_select && cd FTXUI
|
mkdir cmake FTXUI poomer-ftxui-modal_select
|
||||||
|
|
||||||
# Build cmake
|
# Build cmake
|
||||||
cd cmake
|
cd cmake
|
||||||
@ -55,6 +61,7 @@ git clone https://github.com/ArthurSonzogni/FTXUI .
|
|||||||
../cmake/bin/cmake -B ./build
|
../cmake/bin/cmake -B ./build
|
||||||
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
|
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
|
||||||
cd ../poomer-ftxui-modal_select
|
cd ../poomer-ftxui-modal_select
|
||||||
|
wget https://github.com/nlohmann/json/releases/download/v3.12.0/json.hpp
|
||||||
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
||||||
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
||||||
./poomer-ftxui-modal_select
|
./poomer-ftxui-modal_select
|
||||||
@ -74,15 +81,15 @@ mkdir FTXUI poomer-ftxui-modal_select && cd FTXUI
|
|||||||
|
|
||||||
# Build FTXUI
|
# Build FTXUI
|
||||||
git clone https://github.com/ArthurSonzogni/FTXUI .
|
git clone https://github.com/ArthurSonzogni/FTXUI .
|
||||||
cmake -B ./build --config=release
|
cmake -B ./build -DFTXUI_MICROSOFT_TERMINAL_FALLBACK=ON
|
||||||
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
|
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
|
||||||
cmake --build ./build -j%NUMBER_OF_PROCESSORS%
|
cmake --build ./build --config Release -j%NUMBER_OF_PROCESSORS%
|
||||||
|
|
||||||
# Build poomer-ftxui-modal-select
|
# Build poomer-ftxui-modal-select
|
||||||
cd ../poomer-ftxui-modal_select
|
cd ../poomer-ftxui-modal_select
|
||||||
|
wget https://github.com/nlohmann/json/releases/download/v3.12.0/json.hpp
|
||||||
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
||||||
cl /MD /std:c++17 poomer-ftxui-modal_select.cpp Fe:poomer-ftxui-modal_select.exe /I..\FTXUI\include\ /I. /link ..\FTXUI\build\Release\ftxui-component.lib ..\FTXUI\build\Release\ftxui-screen.lib ..\FTXUI\build\Release\ftxui-dom.lib
|
cl /MD /std:c++17 poomer-ftxui-modal_select.cpp /Fe:poomer-ftxui-modal_select.exe /I..\FTXUI\include\ /I. /link ..\FTXUI\build\Release\ftxui-component.lib ..\FTXUI\build\Release\ftxui-screen.lib ..\FTXUI\build\Release\ftxui-dom.lib
|
||||||
|
.\poomer-ftxui-modal_select.exe
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
BIN
resources/macos.png
Normal file
BIN
resources/macos.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 287 KiB |
BIN
resources/ubuntu.png
Normal file
BIN
resources/ubuntu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
BIN
resources/windows.png
Normal file
BIN
resources/windows.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 311 KiB |
Loading…
x
Reference in New Issue
Block a user