-
|
Hi, is it possible to suspend a TUI built with the Only possible method I found so far is Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Ok, found a workaround. Just starting the var tui_buffer: [1024]u8 = undefined;
var app: vxfw.App = undefined;
const root_struct = try RootStruct.init(gpa, arena, io, cont_opts, config, env_map, cwd);
defer root_struct.deinit();
app_loop: while (true) {
app = try .init(io, gpa, init.environ_map, &tui_buffer);
try app.run(root_struct.widget(), .{});
if (root_struct.active_section == .inner_tui) {
app.deinit();
try root_struct.openFileInTui();
root_struct.active_section = .dir_list;
continue :app_loop;
}
app.deinit();
break :app_loop;
} |
Beta Was this translation helpful? Give feedback.
Ok, found a workaround. Just starting the
app.run()inside a loop which only exits and reloads theAppstruct when a particular section is active. While it seems kind of a hack, it works good so far...