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
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 = "v2026.04.27";
static const auto version = "v2026.04.28";
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
6 changes: 3 additions & 3 deletions src/netxs/desktopio/baseui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,11 +1287,11 @@ namespace netxs::ui
struct cleanup
{
netxs::sptr<std::function<void()>> action;
cleanup(std::function<void()> f)
cleanup(std::function<void()> f)
: action(ptr::shared(f))
{ }
~cleanup()
{
~cleanup()
{
if (action && action.use_count() == 1)
{
(*action)();
Expand Down
4 changes: 3 additions & 1 deletion src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,9 @@ namespace netxs::os
#if defined(__BSD__) || defined(__ANDROID__)
auto uname = ::getlogin(); // username associated with a session, even if it has no controlling terminal.
#else
auto uname = ::cuserid(nullptr);
//auto uname = ::cuserid(nullptr); //todo ::cuserid() is incompatible with static linking (causes crash).
auto uname = std::getenv("USER");
if (!uname) uname = std::getenv("LOGNAME");
#endif
auto strid = utf::concat(usrid);
auto login = uname && uname[0] ? text{ uname } : strid;
Expand Down
2 changes: 2 additions & 0 deletions src/netxs/desktopio/terminal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,13 @@ namespace netxs::ui
{
case 0:
default:
// 4: Sixel graphics
// 61: VT Level 1 conformance
// 22: Color text
// 28: Rectangular area operations
// 52: Clipboard operations
// 10060: VT2D
//todo queue.add("\x1b[?4;61;22;28;52;10060c");
queue.add("\x1b[?61;22;28;52;10060c");
break;
}
Expand Down
Loading