| 
									
										
										
										
											2025-06-04 09:02:20 -04:00
										 |  |  | option(FTXUI_BUILD_DOCS "Set to ON to build docs" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_BUILD_EXAMPLES "Set to ON to build examples" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_BUILD_MODULES "Build the C++20 modules" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_BUILD_TESTS "Set to ON to build tests" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_BUILD_TESTS_FUZZER "Set to ON to enable fuzzing" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_CLANG_TIDY "Execute clang-tidy" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_DEV_WARNINGS "Enable more compiler warnings and warnings as errors" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_ENABLE_COVERAGE "Execute code coverage" OFF)
 | 
					
						
							|  |  |  | option(FTXUI_ENABLE_INSTALL "Generate the install target" ON)
 | 
					
						
							|  |  |  | option(FTXUI_QUIET "Set to ON for FTXUI to be quiet" OFF)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (FTXUI_BUILD_MODULES)
 | 
					
						
							|  |  |  |   cmake_minimum_required(VERSION 3.28.2)
 | 
					
						
							|  |  |  | else()
 | 
					
						
							|  |  |  |   cmake_minimum_required(VERSION 3.12)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2020-08-09 14:53:56 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-06 18:53:02 +01:00
										 |  |  | project(ftxui | 
					
						
							|  |  |  |   LANGUAGES CXX
 | 
					
						
							| 
									
										
										
										
											2025-05-07 22:43:27 +02:00
										 |  |  |   VERSION 6.1.9
 | 
					
						
							| 
									
										
										
										
											2023-05-17 01:50:47 -07:00
										 |  |  |   DESCRIPTION "C++ Functional Terminal User Interface."
 | 
					
						
							| 
									
										
										
										
											2019-01-06 18:53:02 +01:00
										 |  |  | )
 | 
					
						
							| 
									
										
										
										
											2019-01-03 00:35:59 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-18 08:48:40 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-04 17:38:31 +02:00
										 |  |  | set(FTXUI_MICROSOFT_TERMINAL_FALLBACK_HELP_TEXT "On windows, assume the \ | 
					
						
							|  |  |  | terminal used will be one of Microsoft and use a set of reasonnable fallback \
 | 
					
						
							|  |  |  | to counteract its implementations problems.")
 | 
					
						
							|  |  |  | if (WIN32)
 | 
					
						
							|  |  |  |   option(FTXUI_MICROSOFT_TERMINAL_FALLBACK | 
					
						
							|  |  |  |     ${FTXUI_MICROSOFT_TERMINAL_FALLBACK_HELP_TEXT} ON)
 | 
					
						
							|  |  |  | else()
 | 
					
						
							|  |  |  |   option(FTXUI_MICROSOFT_TERMINAL_FALLBACK | 
					
						
							|  |  |  |     ${FTXUI_MICROSOFT_TERMINAL_FALLBACK_HELP_TEXT} OFF)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-01 11:40:49 +02:00
										 |  |  | set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-04 14:35:08 +02:00
										 |  |  | include(cmake/ftxui_message.cmake)
 | 
					
						
							| 
									
										
										
										
											2022-03-31 02:17:43 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-10 12:52:34 +02:00
										 |  |  | add_library(screen | 
					
						
							| 
									
										
										
										
											2022-01-13 08:46:09 +08:00
										 |  |  |   include/ftxui/screen/box.hpp
 | 
					
						
							|  |  |  |   include/ftxui/screen/color.hpp
 | 
					
						
							|  |  |  |   include/ftxui/screen/color_info.hpp
 | 
					
						
							| 
									
										
										
										
											2024-04-27 12:03:44 +03:00
										 |  |  |   include/ftxui/screen/image.hpp
 | 
					
						
							|  |  |  |   include/ftxui/screen/pixel.hpp
 | 
					
						
							| 
									
										
										
										
											2022-01-13 08:46:09 +08:00
										 |  |  |   include/ftxui/screen/screen.hpp
 | 
					
						
							|  |  |  |   include/ftxui/screen/string.hpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/screen/box.cpp
 | 
					
						
							| 
									
										
										
										
											2020-09-02 11:32:22 +02:00
										 |  |  |   src/ftxui/screen/color.cpp
 | 
					
						
							| 
									
										
										
										
											2020-09-06 13:43:24 +02:00
										 |  |  |   src/ftxui/screen/color_info.cpp
 | 
					
						
							| 
									
										
										
										
											2024-04-27 12:03:44 +03:00
										 |  |  |   src/ftxui/screen/image.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/screen/screen.cpp
 | 
					
						
							|  |  |  |   src/ftxui/screen/string.cpp
 | 
					
						
							|  |  |  |   src/ftxui/screen/terminal.cpp
 | 
					
						
							| 
									
										
										
										
											2022-01-13 08:46:09 +08:00
										 |  |  |   src/ftxui/screen/util.hpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-10 12:52:34 +02:00
										 |  |  | add_library(dom | 
					
						
							| 
									
										
										
										
											2021-12-23 14:17:33 +01:00
										 |  |  |   include/ftxui/dom/canvas.hpp
 | 
					
						
							| 
									
										
										
										
											2023-03-09 20:21:23 +01:00
										 |  |  |   include/ftxui/dom/direction.hpp
 | 
					
						
							| 
									
										
										
										
											2020-03-24 23:26:55 +01:00
										 |  |  |   include/ftxui/dom/elements.hpp
 | 
					
						
							| 
									
										
										
										
											2021-12-11 17:58:25 +01:00
										 |  |  |   include/ftxui/dom/flexbox_config.hpp
 | 
					
						
							| 
									
										
										
										
											2020-03-24 23:26:55 +01:00
										 |  |  |   include/ftxui/dom/node.hpp
 | 
					
						
							|  |  |  |   include/ftxui/dom/requirement.hpp
 | 
					
						
							| 
									
										
										
										
											2024-12-27 15:45:13 +07:00
										 |  |  |   include/ftxui/dom/selection.hpp
 | 
					
						
							| 
									
										
										
										
											2020-03-24 23:26:55 +01:00
										 |  |  |   include/ftxui/dom/take_any_args.hpp
 | 
					
						
							| 
									
										
										
										
											2022-02-13 11:41:31 +01:00
										 |  |  |   src/ftxui/dom/automerge.cpp
 | 
					
						
							| 
									
										
										
										
											2024-12-27 15:45:13 +07:00
										 |  |  |   src/ftxui/dom/selection_style.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/blink.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/bold.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/border.cpp
 | 
					
						
							| 
									
										
										
										
											2021-08-10 22:15:24 +02:00
										 |  |  |   src/ftxui/dom/box_helper.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/box_helper.hpp
 | 
					
						
							| 
									
										
										
										
											2021-12-23 14:17:33 +01:00
										 |  |  |   src/ftxui/dom/canvas.cpp
 | 
					
						
							| 
									
										
										
										
											2020-08-26 17:58:18 +02:00
										 |  |  |   src/ftxui/dom/clear_under.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/color.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/composite_decorator.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/dbox.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/dim.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/flex.cpp
 | 
					
						
							| 
									
										
										
										
											2021-12-11 17:58:25 +01:00
										 |  |  |   src/ftxui/dom/flexbox.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/flexbox_config.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/flexbox_helper.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/flexbox_helper.hpp
 | 
					
						
							| 
									
										
										
										
											2021-12-13 11:38:31 +01:00
										 |  |  |   src/ftxui/dom/focus.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/frame.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/gauge.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/graph.cpp
 | 
					
						
							| 
									
										
										
										
											2021-08-22 19:36:11 +02:00
										 |  |  |   src/ftxui/dom/gridbox.cpp
 | 
					
						
							| 
									
										
										
										
											2021-09-26 15:19:17 +02:00
										 |  |  |   src/ftxui/dom/hbox.cpp
 | 
					
						
							| 
									
										
										
										
											2024-12-27 15:45:13 +07:00
										 |  |  |   src/ftxui/dom/hyperlink.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/inverted.cpp
 | 
					
						
							| 
									
										
										
										
											2025-03-22 10:03:43 -07:00
										 |  |  |   src/ftxui/dom/italic.cpp
 | 
					
						
							| 
									
										
										
										
											2023-03-22 09:59:02 -03:00
										 |  |  |   src/ftxui/dom/linear_gradient.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/node.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/node_decorator.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/paragraph.cpp
 | 
					
						
							| 
									
										
										
										
											2021-04-18 22:33:41 +02:00
										 |  |  |   src/ftxui/dom/reflect.cpp
 | 
					
						
							| 
									
										
										
										
											2021-09-26 15:19:17 +02:00
										 |  |  |   src/ftxui/dom/scroll_indicator.cpp
 | 
					
						
							| 
									
										
										
										
											2024-12-27 15:45:13 +07:00
										 |  |  |   src/ftxui/dom/selection.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/separator.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/size.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/spinner.cpp
 | 
					
						
							| 
									
										
										
										
											2023-01-22 11:02:27 +01:00
										 |  |  |   src/ftxui/dom/strikethrough.cpp
 | 
					
						
							| 
									
										
										
										
											2021-10-15 23:04:11 +02:00
										 |  |  |   src/ftxui/dom/table.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/text.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/underlined.cpp
 | 
					
						
							| 
									
										
										
										
											2023-01-22 11:02:27 +01:00
										 |  |  |   src/ftxui/dom/underlined_double.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/dom/util.cpp
 | 
					
						
							|  |  |  |   src/ftxui/dom/vbox.cpp
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-10 12:52:34 +02:00
										 |  |  | add_library(component | 
					
						
							| 
									
										
										
										
											2022-03-13 18:51:46 +01:00
										 |  |  |   include/ftxui/component/animation.hpp
 | 
					
						
							| 
									
										
										
										
											2021-05-01 18:13:56 +02:00
										 |  |  |   include/ftxui/component/captured_mouse.hpp
 | 
					
						
							| 
									
										
										
										
											2020-08-26 16:26:09 +02:00
										 |  |  |   include/ftxui/component/component.hpp
 | 
					
						
							| 
									
										
										
										
											2021-05-09 20:32:27 +02:00
										 |  |  |   include/ftxui/component/component_base.hpp
 | 
					
						
							| 
									
										
										
										
											2022-03-13 18:51:46 +01:00
										 |  |  |   include/ftxui/component/component_options.hpp
 | 
					
						
							| 
									
										
										
										
											2020-08-26 16:26:09 +02:00
										 |  |  |   include/ftxui/component/event.hpp
 | 
					
						
							| 
									
										
										
										
											2022-10-18 21:29:27 +02:00
										 |  |  |   include/ftxui/component/loop.hpp
 | 
					
						
							| 
									
										
										
										
											2021-04-25 15:22:38 +02:00
										 |  |  |   include/ftxui/component/mouse.hpp
 | 
					
						
							| 
									
										
										
										
											2020-08-26 16:26:09 +02:00
										 |  |  |   include/ftxui/component/receiver.hpp
 | 
					
						
							|  |  |  |   include/ftxui/component/screen_interactive.hpp
 | 
					
						
							| 
									
										
										
										
											2022-02-13 11:11:34 +01:00
										 |  |  |   include/ftxui/component/task.hpp
 | 
					
						
							| 
									
										
										
										
											2022-03-13 18:51:46 +01:00
										 |  |  |   src/ftxui/component/animation.cpp
 | 
					
						
							| 
									
										
										
										
											2020-08-26 16:26:09 +02:00
										 |  |  |   src/ftxui/component/button.cpp
 | 
					
						
							| 
									
										
										
										
											2021-05-23 12:53:20 +02:00
										 |  |  |   src/ftxui/component/catch_event.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/checkbox.cpp
 | 
					
						
							| 
									
										
										
										
											2022-01-02 15:48:56 +01:00
										 |  |  |   src/ftxui/component/collapsible.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/component.cpp
 | 
					
						
							| 
									
										
										
										
											2022-03-13 18:51:46 +01:00
										 |  |  |   src/ftxui/component/component_options.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/container.cpp
 | 
					
						
							| 
									
										
										
										
											2021-09-26 15:19:17 +02:00
										 |  |  |   src/ftxui/component/dropdown.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/event.cpp
 | 
					
						
							| 
									
										
										
										
											2022-12-04 11:54:49 +01:00
										 |  |  |   src/ftxui/component/hoverable.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/input.cpp
 | 
					
						
							| 
									
										
										
										
											2022-10-18 21:29:27 +02:00
										 |  |  |   src/ftxui/component/loop.cpp
 | 
					
						
							| 
									
										
										
										
											2021-09-26 15:19:17 +02:00
										 |  |  |   src/ftxui/component/maybe.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/menu.cpp
 | 
					
						
							| 
									
										
										
										
											2022-10-18 21:29:27 +02:00
										 |  |  |   src/ftxui/component/modal.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/radiobox.cpp
 | 
					
						
							| 
									
										
										
										
											2020-03-26 23:15:52 +01:00
										 |  |  |   src/ftxui/component/radiobox.cpp
 | 
					
						
							| 
									
										
										
										
											2021-05-13 11:44:47 +02:00
										 |  |  |   src/ftxui/component/renderer.cpp
 | 
					
						
							| 
									
										
										
										
											2021-05-27 15:22:53 +02:00
										 |  |  |   src/ftxui/component/resizable_split.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  |   src/ftxui/component/screen_interactive.cpp
 | 
					
						
							| 
									
										
										
										
											2021-04-29 00:18:58 +02:00
										 |  |  |   src/ftxui/component/slider.cpp
 | 
					
						
							| 
									
										
										
										
											2025-08-16 18:40:50 +02:00
										 |  |  |   src/ftxui/component/task.cpp
 | 
					
						
							|  |  |  |   src/ftxui/component/task_internal.hpp
 | 
					
						
							|  |  |  |   src/ftxui/component/task_queue.cpp
 | 
					
						
							|  |  |  |   src/ftxui/component/task_queue.hpp
 | 
					
						
							|  |  |  |   src/ftxui/component/task_runner.cpp
 | 
					
						
							|  |  |  |   src/ftxui/component/task_runner.hpp
 | 
					
						
							| 
									
										
										
										
											2020-10-25 01:57:56 +02:00
										 |  |  |   src/ftxui/component/terminal_input_parser.cpp
 | 
					
						
							|  |  |  |   src/ftxui/component/terminal_input_parser.hpp
 | 
					
						
							| 
									
										
										
										
											2022-03-12 22:18:36 +08:00
										 |  |  |   src/ftxui/component/util.cpp
 | 
					
						
							| 
									
										
										
										
											2023-07-15 16:29:48 +02:00
										 |  |  |   src/ftxui/component/window.cpp
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-16 18:40:50 +02:00
										 |  |  | target_link_libraries(dom PUBLIC screen)
 | 
					
						
							|  |  |  | target_link_libraries(component PUBLIC dom)
 | 
					
						
							| 
									
										
										
										
											2023-02-12 14:09:47 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 15:14:27 +02:00
										 |  |  | include(cmake/ftxui_set_options.cmake)
 | 
					
						
							|  |  |  | ftxui_set_options(screen)
 | 
					
						
							|  |  |  | ftxui_set_options(dom)
 | 
					
						
							|  |  |  | ftxui_set_options(component)
 | 
					
						
							| 
									
										
										
										
											2019-02-02 01:59:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-17 15:47:20 +02:00
										 |  |  | include(cmake/ftxui_coverage.cmake)
 | 
					
						
							|  |  |  | ftxui_check_coverage(screen)
 | 
					
						
							|  |  |  | ftxui_check_coverage(dom)
 | 
					
						
							|  |  |  | ftxui_check_coverage(component)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-14 20:37:42 +01:00
										 |  |  | include(cmake/ftxui_test.cmake)
 | 
					
						
							|  |  |  | include(cmake/ftxui_benchmark.cmake)
 | 
					
						
							|  |  |  | include(cmake/ftxui_fuzzer.cmake)
 | 
					
						
							| 
									
										
										
										
											2021-06-26 15:14:27 +02:00
										 |  |  | include(cmake/iwyu.cmake)
 | 
					
						
							|  |  |  | include(cmake/ftxui_export.cmake)
 | 
					
						
							| 
									
										
										
										
											2023-01-14 20:37:42 +01:00
										 |  |  | include(cmake/ftxui_install.cmake)
 | 
					
						
							|  |  |  | include(cmake/ftxui_package.cmake)
 | 
					
						
							| 
									
										
										
										
											2025-06-04 09:02:20 -04:00
										 |  |  | include(cmake/ftxui_modules.cmake)
 | 
					
						
							| 
									
										
										
										
											2021-09-30 21:13:16 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-04 09:02:20 -04:00
										 |  |  | add_subdirectory(examples)
 | 
					
						
							| 
									
										
										
										
											2025-08-21 08:05:23 +02:00
										 |  |  | add_subdirectory(doc)
 | 
					
						
							| 
									
										
										
										
											2025-06-04 09:02:20 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # You can generate ./examples_modules/ by running
 | 
					
						
							|  |  |  | # ./tools/generate_examples_modules.sh
 | 
					
						
							|  |  |  | if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/examples_modules/CMakeLists.txt")
 | 
					
						
							|  |  |  |   add_subdirectory(examples_modules)
 | 
					
						
							|  |  |  | endif()
 |