Clean up prints

Mikayla Maki created

Change summary

crates/terminal/src/connection.rs        | 1 -
crates/terminal/src/connection/events.rs | 2 +-
crates/terminal/src/terminal.rs          | 1 -
crates/terminal/src/terminal_element.rs  | 5 ++---
4 files changed, 3 insertions(+), 6 deletions(-)

Detailed changes

crates/terminal/src/connection.rs 🔗

@@ -191,7 +191,6 @@ impl TerminalConnection {
         let guard = self.term.lock();
         let mode = guard.mode();
         let esc = to_esc_str(keystroke, mode);
-        dbg!(&esc);
         drop(guard);
         if esc.is_some() {
             self.write_to_pty(esc.unwrap());

crates/terminal/src/connection/events.rs 🔗

@@ -219,7 +219,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option<String> {
 
     // Fallback to keystroke input sent directly
     if keystroke.key.chars().count() == 1 {
-        dbg!("This should catch space", &keystroke.key);
+        //TODO this might fail on unicode during internationalization
         return Some(keystroke.key.clone());
     } else {
         None

crates/terminal/src/terminal.rs 🔗

@@ -219,7 +219,6 @@ impl Terminal {
 
     ///Synthesize the keyboard event corresponding to 'enter'
     fn enter(&mut self, _: &Enter, cx: &mut ViewContext<Self>) {
-        dbg!("Here!");
         self.connection.update(cx, |connection, _| {
             connection.try_keystroke(&Keystroke::parse("enter").unwrap());
         });

crates/terminal/src/terminal_element.rs 🔗

@@ -384,9 +384,8 @@ impl Element for TerminalEl {
                 self.connection
                     .upgrade(cx.app)
                     .map(|connection| {
-                        connection.update(cx.app, |connection, _| {
-                            connection.try_keystroke(dbg!(keystroke))
-                        })
+                        connection
+                            .update(cx.app, |connection, _| connection.try_keystroke(keystroke))
                     })
                     .unwrap_or(false)
             }