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+C
handler. - Feature: Add
ScreenInteractive::ForceHandleCtrlZ(false)
to allow component
to fully override the defaultCtrl+Z
handler. - Feature: Add
Mouse::WeelLeft
andMouse::WeelRight
events on supported
terminals. - Feature: Add
Event::DebugString()
. - Feature: Add support for
Input
's insert mode. AddInputOption::insert
option. Added by @mingsheng13. - Feature: Add
DropdownOption
to 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: #773
This fixes: #792
- Detect when the mouse move, as opposed to being pressed.
- 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:
Input
onchange
was 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
ResizeableSplit
keyboard navigation. Fixed by #842. - Bugfix: Fix
Menu
focus. 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
Dropdown
with no entries. - Bugfix: Fix crash in
LinearGradient
due to float precision and an off-by-one
mistake. See #998.
Dom
- Feature: Add
italic
decorator. 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_screen
option 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
selectionColor
decorator. - See
selectionBackgroundColor
decorator. - See
selectionForegroundColor
decorator. - See
selectionStyle(style)
decorator. - See
selectionStyleReset
decorator.
- 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
Adapter
forConstStringListRef
. See #843.
Build
- Support for cmake's "unity/jumbo" builds. Fixed by @ClausKlein.