mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-22 16:01:07 +00:00
11 lines
251 B
Rust
11 lines
251 B
Rust
pub(crate) fn paste_payload_for_runtime(
|
|
runtime: &crate::terminal::TerminalRuntime,
|
|
text: &str,
|
|
) -> String {
|
|
if runtime.bracketed_paste_enabled() {
|
|
format!("\x1b[200~{text}\x1b[201~")
|
|
} else {
|
|
text.to_owned()
|
|
}
|
|
}
|