Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,8 @@ Notes
<config> <!-- The following config partially overrides the base configuration. It is valid for DirectVT apps only. -->
<terminal>
<scrollback>
<size=40000/> <!-- Scrollback buffer length. -->
<wrap=on/> <!-- Lines wrapping mode. -->
<size=100000/> <!-- Scrollback buffer length. -->
<wrap=on/> <!-- Lines wrapping mode. -->
</scrollback>
<selection>
<mode=selection/mode/> <!-- Clipboard copy format: "text" | "ansi" | "rich" | "html" | "protected" | "none" . -->
Expand All @@ -890,7 +890,7 @@ Notes
<config>
<terminal>
<scrollback>
<size=5000/>
<size=50000/>
<wrap="off"/>
</scrollback>
<menu item*>
Expand Down
3 changes: 2 additions & 1 deletion src/netxs/apps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ namespace netxs::app::shared
auto& backup = boss.base::template field<text>();
boss.on(tier::mouserelease, input::key::MouseAny, [&](hids& gear)
{
if (gear.cause == input::key::MouseDown)
if ((gear.cause & input::key::MouseAnyButtonMask) == input::key::MouseDown)
{
if (backup.empty())
{
Expand All @@ -698,6 +698,7 @@ namespace netxs::app::shared
gear.setfree();
boss.set(backup);
backup.clear();
gear.dismiss_dblclick();
}
});
});
Expand Down
4 changes: 4 additions & 0 deletions src/netxs/apps/desk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ namespace netxs::app::desk
};
});
auto app_label = item_area->attach(slot::_1, ui::item::ctor(ansi::add(utf8).mgl(0).wrp(wrap::off).jet(bias::left)))
->active()
->setpad({ tall + 1, 0, tall, tall })
->template plugin<pro::notes>(" Running application \n"
" LeftClick to activate \n"
" DoubleLeftClick to fly to ")
->flexible()
->drawdots()
->shader(cF, e2::form::state::focus::count, data_src);
Expand Down
2 changes: 1 addition & 1 deletion src/netxs/desktopio/application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace netxs::app

namespace netxs::app::shared
{
static const auto version = "v2025.05.19";
static const auto version = "v2025.05.20";
static const auto repository = "https://github.com/directvt/vtm";
static const auto usr_config = "~/.config/vtm/settings.xml"s;
static const auto sys_config = "/etc/vtm/settings.xml"s;
Expand Down
20 changes: 13 additions & 7 deletions src/netxs/desktopio/console.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,13 +606,18 @@ namespace netxs::ui
{
auto& gear = *gear_ptr;
if (gear.mouse_disabled) continue;
if (auto tooltip_page_sptr = gear.tooltip.get_render())
auto [tooltip_page_sptr, tooltip_offset] = gear.tooltip.get_render_sptr_and_offset();
if (tooltip_page_sptr)
{
auto& tooltip_page = *tooltip_page_sptr;
auto full_area = full;
full_area.coor = std::max(dot_00, twod{ gear.coord } - twod{ 4, tooltip_page.size() + 1 });
full_area.size.x = dot_mx.x; // Prevent line wrapping.
canvas.full(full_area);
auto fs_area = full;
auto page_area = full;
page_area.coor = tooltip_offset + twod{ gear.coord };
page_area.size = tooltip_page.limits();
fs_area.size = std::max(dot_00, fs_area.size - page_area.size);
page_area.coor = fs_area.clamp(page_area.coor);
page_area.size.x = dot_mx.x; // Prevent line wrapping.
canvas.full(page_area);
canvas.cup(dot_00);
canvas.output(tooltip_page, cell::shaders::color(props.tooltip_colors));
}
Expand All @@ -627,9 +632,10 @@ namespace netxs::ui
{
auto& gear = *gear_ptr;
if (gear.mouse_disabled) continue;
if (auto v = gear.tooltip.get())
if (auto v = gear.tooltip.get_fresh_qiew())
{
list.thing.push(ext_gear_id, v.value());
auto tooltip_qiew = v.value();
list.thing.push(ext_gear_id, tooltip_qiew, props.tooltip_colors.fgc(), props.tooltip_colors.bgc());
}
}
list.thing.sendby<true>(canal);
Expand Down
2 changes: 1 addition & 1 deletion src/netxs/desktopio/directvt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ namespace netxs::directvt

STRUCT_macro(frame_element, (blob, data))
STRUCT_macro(jgc_element, (ui64, token) (text, cluster))
STRUCT_macro(tooltip_element, (id_t, gear_id) (text, utf8))
STRUCT_macro(tooltip_element, (id_t, gear_id) (text, utf8) (argb, fgc) (argb, bgc))
STRUCT_macro(mouse_event, (id_t, gear_id)
(si32, ctlstat)
(hint, cause)
Expand Down
Loading