2026 Cleanup , first windows working instructions, removed json.hpp, added pictures

This commit is contained in:
Harvey Fong 2026-01-07 03:27:58 +00:00
parent c8d22319e7
commit 1473719a87
6 changed files with 14 additions and 24772 deletions

View File

@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal

View File

@ -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 modern C++ library that provides a functional approach to building terminal applications.
![ubuntu](resources/ubuntu.png)
![macos](resources/macos.png)
![windows](resources/windows.png)
# Build
```
@ -30,6 +35,7 @@ cmake -B ./build
cmake --build ./build -j$(nproc)
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
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 .
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
@ -41,7 +47,7 @@ g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../F
xcode-select --install
mkdir workdir && cd workdir
mkdir cmake FTXUI poomer-ftxui-modal_select && cd FTXUI
mkdir cmake FTXUI poomer-ftxui-modal_select
# Build cmake
cd cmake
@ -55,6 +61,7 @@ git clone https://github.com/ArthurSonzogni/FTXUI .
../cmake/bin/cmake -B ./build
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
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 .
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
@ -74,15 +81,15 @@ mkdir FTXUI poomer-ftxui-modal_select && cd FTXUI
# Build 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
cmake --build ./build -j%NUMBER_OF_PROCESSORS%
cmake --build ./build --config Release -j%NUMBER_OF_PROCESSORS%
# Build 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 .
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
```

24765
json.hpp

File diff suppressed because it is too large Load Diff

BIN
resources/macos.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

BIN
resources/ubuntu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
resources/windows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB