Change summary
crates/assistant/src/terminal_inline_assistant.rs | 3 +++
crates/assistant2/src/terminal_codegen.rs | 3 +++
2 files changed, 6 insertions(+)
Detailed changes
@@ -1054,7 +1054,10 @@ pub enum CodegenEvent {
impl EventEmitter<CodegenEvent> for Codegen {}
+#[cfg(not(target_os = "windows"))]
const CLEAR_INPUT: &str = "\x15";
+#[cfg(target_os = "windows")]
+const CLEAR_INPUT: &str = "\x03";
const CARRIAGE_RETURN: &str = "\x0d";
struct TerminalTransaction {
@@ -155,7 +155,10 @@ pub enum CodegenEvent {
Finished,
}
+#[cfg(not(target_os = "windows"))]
pub const CLEAR_INPUT: &str = "\x15";
+#[cfg(target_os = "windows")]
+pub const CLEAR_INPUT: &str = "\x03";
const CARRIAGE_RETURN: &str = "\x0d";
struct TerminalTransaction {