This commit is contained in:
Mitchell Hashimoto
2022-09-05 11:22:29 -07:00
parent 802f230fa2
commit 8ef31aaaf9
2 changed files with 7 additions and 4 deletions

View File

@ -455,7 +455,12 @@ pub fn print(self: *Terminal, c: u21) !void {
// extremely fast and we take this much slower path for graphemes. No hate // extremely fast and we take this much slower path for graphemes. No hate
// on graphemes, I'd love to make them much faster, but I wanted to focus // on graphemes, I'd love to make them much faster, but I wanted to focus
// on correctness first. // on correctness first.
if (c > 255 and self.screen.cursor.x > 0) { //
// NOTE: This is disabled because no shells handle this correctly. We'll
// need to work with shells and other emulators to probably figure out
// a way to support this. In the mean time, I'm going to keep all the
// grapheme detection and keep it up to date so we're ready to go.
if (false and c > 255 and self.screen.cursor.x > 0) {
// TODO: test this! // TODO: test this!
const row = self.screen.getRow(.{ .active = self.screen.cursor.y }); const row = self.screen.getRow(.{ .active = self.screen.cursor.y });

View File

@ -51,9 +51,7 @@ pub fn Stream(comptime Handler: type) type {
const actions = self.parser.next(c); const actions = self.parser.next(c);
for (actions) |action_opt| { for (actions) |action_opt| {
// if (action_opt) |action| { // if (action_opt) |action| {
// if (action != .print) { // log.info("action: {}", .{action});
// log.info("action: {}", .{action});
// }
// } // }
switch (action_opt orelse continue) { switch (action_opt orelse continue) {
.print => |p| if (@hasDecl(T, "print")) try self.handler.print(p), .print => |p| if (@hasDecl(T, "print")) try self.handler.print(p),