Skip to content

Commit

Permalink
Merge pull request #664 from o-sdn-o/gui-bridge
Browse files Browse the repository at this point in the history
Fix waiting for console attached processes to exit
  • Loading branch information
o-sdn-o authored Oct 24, 2024
2 parents 2ab3c63 + 4e3c5c9 commit 55d30a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/netxs/desktopio/application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace netxs::app

namespace netxs::app::shared
{
static const auto version = "v0.9.99.33";
static const auto version = "v0.9.99.34";
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
2 changes: 1 addition & 1 deletion src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4321,9 +4321,9 @@ namespace netxs::os
termsize = cfg.win;
auto trailer = [&, cmd = cfg.cmd]
{
auto exitcode = termlink->wait(); // Wait all attached processes to exit (waiting for conversations to complete, send pending writebuf).
if (attached.exchange(faux))
{
auto exitcode = termlink->wait();
log("%%Process '%cmd%' exited with code %code%", prompt::vtty, ansi::hi(utf::debase437(cmd)), utf::to_hex_0x(exitcode));
writesyn.notify_one(); // Interrupt writing thread.
terminal.onexit(exitcode, "", signaled.exchange(true)); // Only if the process terminates on its own (not forced by sighup).
Expand Down
2 changes: 1 addition & 1 deletion src/netxs/desktopio/terminal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7770,7 +7770,7 @@ namespace netxs::ui
//todo configurable Ctrl+Ins, Shift+Ins etc.
if (gear.handled) return; // Don't pass registered keyboard shortcuts.
if (io_log) log(prompt::key, ansi::hi(input::key::map::data(gear.keycode).name), gear.pressed ? " pressed" : " released");
if (gear.pressed && gear.meta(hids::anyShift) && gear.meta(hids::anyCtrl))
if (target == &normal && gear.pressed && gear.meta(hids::anyShift) && gear.meta(hids::anyCtrl))
{
if (gear.keycode == input::key::LeftArrow && gear.meta(hids::anyAlt)){ base::riseup<tier::preview>(e2::form::upon::scroll::bypage::x, { .vector = dot_10 }); gear.set_handled(); return; }
else if (gear.keycode == input::key::RightArrow && gear.meta(hids::anyAlt)){ base::riseup<tier::preview>(e2::form::upon::scroll::bypage::x, { .vector = -dot_10 }); gear.set_handled(); return; }
Expand Down

0 comments on commit 55d30a6

Please sign in to comment.