diff --git a/crates/vt_pty_terminal_test/README.md b/crates/vt_pty_terminal_test/README.md index ef12ca326..d9b5f374f 100644 --- a/crates/vt_pty_terminal_test/README.md +++ b/crates/vt_pty_terminal_test/README.md @@ -48,7 +48,7 @@ assert!(status.success()); Milestones are encoded as unique window titles: ```text -pty-terminal-test:<32-hex-random-id>: +vt-pty-terminal-test:<32-hex-random-id>: ``` `Reader::expect_milestone` works like this: diff --git a/crates/vt_pty_terminal_test_client/src/lib.rs b/crates/vt_pty_terminal_test_client/src/lib.rs index 028818d41..3b1aa31dc 100644 --- a/crates/vt_pty_terminal_test_client/src/lib.rs +++ b/crates/vt_pty_terminal_test_client/src/lib.rs @@ -1,6 +1,6 @@ use base64::{Engine as _, engine::general_purpose::URL_SAFE_NO_PAD}; -const MILESTONE_TITLE_MARKER: &str = "pty-terminal-test:"; +const MILESTONE_TITLE_MARKER: &str = "vt-pty-terminal-test:"; #[cfg(any(feature = "testing", test))] fn encode_milestone_title(name: &str) -> String { @@ -99,9 +99,9 @@ mod tests { #[test] fn ignores_normal_and_malformed_titles() { assert!(decode_milestone_title(b"normal title").is_none()); - assert!(decode_milestone_title(b"pty-terminal-test:not-hex:cmVhZHk").is_none()); + assert!(decode_milestone_title(b"vt-pty-terminal-test:not-hex:cmVhZHk").is_none()); assert!( - decode_milestone_title(b"pty-terminal-test:00000000000000000000000000000000:*") + decode_milestone_title(b"vt-pty-terminal-test:00000000000000000000000000000000:*") .is_none() ); } diff --git a/crates/vt_socket_ipc/src/unix.rs b/crates/vt_socket_ipc/src/unix.rs index 7698ac81c..283f357f7 100644 --- a/crates/vt_socket_ipc/src/unix.rs +++ b/crates/vt_socket_ipc/src/unix.rs @@ -74,7 +74,7 @@ pub struct Server { impl Server { pub fn bind() -> io::Result { - let dir = tempfile::Builder::new().prefix("socket_ipc_").tempdir()?; + let dir = tempfile::Builder::new().prefix("vt_socket_ipc_").tempdir()?; let root = AbsolutePath::new(dir.path()) .expect("temp directories are absolute") .to_absolute_path_buf(); diff --git a/crates/vt_socket_ipc/src/windows.rs b/crates/vt_socket_ipc/src/windows.rs index 94b3f03f3..5c4cdd453 100644 --- a/crates/vt_socket_ipc/src/windows.rs +++ b/crates/vt_socket_ipc/src/windows.rs @@ -27,7 +27,7 @@ impl Server { clippy::disallowed_macros, reason = "the generated pipe name exceeds Str inline capacity" )] - let name = OsString::from(format!(r"\\.\pipe\socket_ipc_{}", uuid::Uuid::new_v4())); + let name = OsString::from(format!(r"\\.\pipe\vt_socket_ipc_{}", uuid::Uuid::new_v4())); let pending = ServerOptions::new().first_pipe_instance(true).create(&name)?; Ok(Self { name, pending }) }