New
v6.0.0
6.0.0 (2025-03-23)
Please do not use. Prefer v6.0.2 or newer.
Component
- Feature: Add support for raw input. Allowing more keys to be detected.
- Feature: Add
ScreenInteractive::ForceHandleCtrlC(false)to allow component to fully override the defaultCtrl+Chandler. - Feature: Add
ScreenInteractive::ForceHandleCtrlZ(false)to allow component to fully override the defaultCtrl+Zhandler. - Feature: Add
Mouse::WeelLeftandMouse::WeelRightevents on supported terminals. - Feature: Add
Event::DebugString(). - Feature: Add support for
Input's insert mode. AddInputOption::insertoption. Added by @mingsheng13. - Feature: Add
DropdownOptionto configure the dropdown. See #826. - Feature: Add support for Selection. Thanks @clement-roblot. See #926.
- See
ScreenInteractive::GetSelection(). - See
ScreenInteractive::SelectionChange(...)listener.
- See
- Bugfix/Breaking change:
Mouse transition:- Detect when the mouse move, as opposed to being pressed. The Mouse::Moved motion was added.
- Dragging the mouse with the left button pressed now avoids activating multiple checkboxes.
- A couple of components are now activated when the mouse is pressed, as opposed to being released. This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/773 This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/792
- Bugfix: mouse.control is now reported correctly.
- Feature: Add
ScreenInteractive::FullscreenPrimaryScreen(). This allows displaying a fullscreen component on the primary screen, as opposed to the alternate screen. - Bugfix:
Inputonchangewas not called on backspace or delete key. Fixed by @chrysante in chrysante in PR #776. - Bugfix: Propertly restore cursor shape on exit. See #792.
- Bugfix: Fix cursor position in when in the last column. See #831.
- Bugfix: Fix
ResizeableSplitkeyboard navigation. Fixed by #842. - Bugfix: Fix
Menufocus. See #841 - Feature: Add
ComponentBase::Index(). This allows to get the index of a component in its parent. See #932 - Feature: Add
EntryState::index. This allows to get the index of a menu entry. See #932 - Feature: Add
SliderOption::on_change. This allows to set a callback when the slider value changes. See #938. - Bugfix: Handle
Dropdownwith no entries. - Bugfix: Fix crash in
LinearGradientdue to float precision and an off-by-one mistake. See #998.
Dom
- Feature: Add
italicdecorator. For instance:auto italic_text = text("Italic text") | italic;
Proposed by @kenReneris in #1009.auto italic_text = italic(text("Italic text")); - Feature: Add
hscroll_indicator. It display an horizontal indicator reflecting the current scroll position. Proposed by @ibrahimnasson in issue 752 - Feature: Add
extend_beyond_screenoption toDimension::Fit(..), allowing the element to be larger than the screen. Proposed by @LordWhiro. See #572 and #949. - Feature: Add support for Selection. Thanks @clement-roblot. See #926.
- See
selectionColordecorator. - See
selectionBackgroundColordecorator. - See
selectionForegroundColordecorator. - See
selectionStyle(style)decorator. - See
selectionStyleResetdecorator.
- See
- Breaking change: Change how "focus"/"select" are handled. This fixes the behavior.
Screen
- Feature: Add
Box::IsEmpty(). - Feature: Color transparency
- Add
Color::RGBA(r,g,b,a). - Add
Color::HSVA(r,g,b,a). - Add
Color::Blend(Color). - Add
Color::IsOpaque()
- Add
Util
- Feature: Support arbitrary
AdapterforConstStringListRef. See #843.
Build
- Support for cmake's "unity/jumbo" builds. Fixed by @ClausKlein.