summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-11-01 08:52:55 +0100
committerGitHub <noreply@github.com>2021-11-01 08:52:55 +0100
commitd2b81293df36efae1a9a21497f1f46095dff963a (patch)
tree5f176608ba09bded5f68ccc99731ca2ec65fcfdf /zellij-utils/src
parent13f3e747e41ce42daca95aeb67678f0dc7834c0a (diff)
add: `WriteChars` action (#825)
* Behaves like the `Write` action, but one can specify strings themselves instead of their bytecodes. Usage: WriteChars: "cargo make test",
Diffstat (limited to 'zellij-utils/src')
-rw-r--r--zellij-utils/src/input/actions.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs
index 8446bf0d8..c1277db1f 100644
--- a/zellij-utils/src/input/actions.rs
+++ b/zellij-utils/src/input/actions.rs
@@ -28,6 +28,8 @@ pub enum Action {
Quit,
/// Write to the terminal.
Write(Vec<u8>),
+ /// Write Characters to the terminal.
+ WriteChars(String),
/// Switch to the specified input mode.
SwitchToMode(InputMode),
/// Resize focus pane in specified direction.