From 25aae1107b436ea0a2316118be8620a0cf1c9d62 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 1 Sep 2022 11:55:15 -0700 Subject: [PATCH] Added cursor I-Beam --- crates/terminal/src/terminal_element.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/terminal/src/terminal_element.rs b/crates/terminal/src/terminal_element.rs index 2f3d06e2b7..c5dc80d62b 100644 --- a/crates/terminal/src/terminal_element.rs +++ b/crates/terminal/src/terminal_element.rs @@ -682,6 +682,11 @@ impl Element for TerminalElement { //Elements are ephemeral, only at paint time do we know what could be clicked by a mouse self.attach_mouse_handlers(origin, self.view.id(), visible_bounds, layout.mode, cx); + cx.scene.push_cursor_region(gpui::CursorRegion { + bounds, + style: gpui::CursorStyle::IBeam, + }); + cx.paint_layer(clip_bounds, |cx| { //Start with a background color cx.scene.push_quad(Quad {