Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Name the terminal menu item for what it opens

Lakrcacf8a5281af
diff --git a/Research/vphoned_http_api.md b/Research/vphoned_http_api.md
index 2ffdd731..e0abf23a 100644
--- a/Research/vphoned_http_api.md
+++ b/Research/vphoned_http_api.md
@@ -339,7 +339,7 @@ read waits for it, so a client that cannot keep up slows the session down
instead of filling the worker's memory.
Two things on the Mac open this route rather than asking a client to speak
-WebSocket itself. The VM window has **Diagnostics ▸ Session** (⌥⌘T), a
+WebSocket itself. The VM window has **Diagnostics ▸ Debug Session** (⌥⌘T), a
terminal view on a session of its own, closed with the window. And
`{"t":"shell"}` on the machine's `vphone.sock` hands that connection to the
terminal. The end of that client's input reaches the terminal as a `^D`
diff --git a/Skills/vphone-guest-control/references/guest-socket.md b/Skills/vphone-guest-control/references/guest-socket.md
index a490d42d..cb4da85a 100644
--- a/Skills/vphone-guest-control/references/guest-socket.md
+++ b/Skills/vphone-guest-control/references/guest-socket.md
@@ -69,7 +69,7 @@ there: unset for the JavaScript session, a bare name from the bootstrap's
away altogether, rather than only ending its input, hangs the terminal up and
the session goes with it.
-The VM window's **Diagnostics ▸ Session** (⌥⌘T) opens the same route in a
+The VM window's **Diagnostics ▸ Debug Session** (⌥⌘T) opens the same route in a
terminal view, and `script.eval` through `rpc` runs one script without a
terminal at all. See "Scripting sessions" in
`Research/vphoned_http_api.md`.
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Shell/VPhoneShellWindowController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Shell/VPhoneShellWindowController.swift
index 096cc8f7..c9927a07 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Shell/VPhoneShellWindowController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Shell/VPhoneShellWindowController.swift
@@ -27,7 +27,7 @@ final class VPhoneShellWindowController {
backing: .buffered,
defer: false,
)
- window.title = VPhoneLocalization.text(program == nil ? "Session" : "Terminal")
+ window.title = VPhoneLocalization.text(program == nil ? "Debug Session" : "Terminal")
window.subtitle = program ?? "vphoned"
window.contentViewController = NSHostingController(rootView: view)
window.contentMinSize = NSSize(width: 420, height: 240)
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDiagnostics.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDiagnostics.swift
index 55eea8bb..1a8dd0d5 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDiagnostics.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDiagnostics.swift
@@ -19,9 +19,10 @@ extension VPhoneMenuController {
menu.addItem(NSMenuItem.separator())
// A guest has no shell of its own, and the tvos preset has no
- // debugger: this window is the only place to run code inside one.
+ // debugger: this window is the only place to run code inside one, so
+ // it is named for that rather than for the session kind it opens.
let session = makeItem(
- "Session",
+ "Debug Session",
action: #selector(openSession),
keyEquivalent: "t",
modifiers: [.command, .option],