windows: Fix terminal inline assistant (#25715)
Closes #18518 Closes #20546 Release Notes: - N/A
This commit is contained in:
parent
8ba7b349a5
commit
a0d1555470
2 changed files with 6 additions and 0 deletions
|
@ -1054,7 +1054,10 @@ pub enum CodegenEvent {
|
||||||
|
|
||||||
impl EventEmitter<CodegenEvent> for Codegen {}
|
impl EventEmitter<CodegenEvent> for Codegen {}
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
const CLEAR_INPUT: &str = "\x15";
|
const CLEAR_INPUT: &str = "\x15";
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
const CLEAR_INPUT: &str = "\x03";
|
||||||
const CARRIAGE_RETURN: &str = "\x0d";
|
const CARRIAGE_RETURN: &str = "\x0d";
|
||||||
|
|
||||||
struct TerminalTransaction {
|
struct TerminalTransaction {
|
||||||
|
|
|
@ -155,7 +155,10 @@ pub enum CodegenEvent {
|
||||||
Finished,
|
Finished,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
pub const CLEAR_INPUT: &str = "\x15";
|
pub const CLEAR_INPUT: &str = "\x15";
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
pub const CLEAR_INPUT: &str = "\x03";
|
||||||
const CARRIAGE_RETURN: &str = "\x0d";
|
const CARRIAGE_RETURN: &str = "\x0d";
|
||||||
|
|
||||||
struct TerminalTransaction {
|
struct TerminalTransaction {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue