this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxfw: add set_title command

+12
+5
src/vxfw/App.zig
··· 212 212 } 213 213 }; 214 214 }, 215 + .set_title => |title| { 216 + self.vx.setTitle(self.tty.anyWriter(), title) catch |err| { 217 + std.log.err("set_title error: {}", .{err}); 218 + }; 219 + }, 215 220 } 216 221 } 217 222 }
+7
src/vxfw/vxfw.zig
··· 81 81 /// Try to copy the provided text to the host clipboard. Uses OSC 52. Silently fails if terminal 82 82 /// doesn't support OSC 52 83 83 copy_to_clipboard: []const u8, 84 + 85 + /// Set the title of the terminal 86 + set_title: []const u8, 84 87 }; 85 88 86 89 pub const EventContext = struct { ··· 128 131 129 132 pub fn copyToClipboard(self: *EventContext, content: []const u8) Allocator.Error!void { 130 133 try self.addCmd(.{ .copy_to_clipboard = content }); 134 + } 135 + 136 + pub fn setTitle(self: *EventContext, title: []const u8) Allocator.Error!void { 137 + try self.addCmd(.{ .set_title = title }); 131 138 } 132 139 }; 133 140