Skip to content

Commit

Permalink
Merge branch '57582-tui-port' into 'main'
Browse files Browse the repository at this point in the history
57582 tui port

See merge request repositories/wash!17
  • Loading branch information
k-juszczyk committed Jul 16, 2024
2 parents 8ffb506 + 7f8d59a commit 225ead9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
author_email='[email protected]'
edition = "2018"
name = "wash"
version = "0.1.3"
version = "0.1.4"
license = "Apache-2.0"

[dependencies]
Expand Down
11 changes: 0 additions & 11 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,9 @@ impl Perform for Cli {
// instead of replacing character under cursor

self.input.insert(self.cursor_position, c);

// for wasi target, we assume that hterm has enabled insert mode
#[cfg(target_os = "wasi")]
self.echo(&c.to_string());

#[cfg(not(target_os = "wasi"))]
self.echo(&format!("\x1b[@{}", c));
} else {
self.input[self.cursor_position] = c;

#[cfg(target_os = "wasi")]
self.echo(&format!("\x1b[P{}", c));

#[cfg(not(target_os = "wasi"))]
self.echo(&c.to_string());
}

Expand Down

0 comments on commit 225ead9

Please sign in to comment.