MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / trimTerminalSelection

Function trimTerminalSelection

frontend/app/view/term/termutil.ts:13–18  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

11export type GenClipboardItem = { text?: string; image?: Blob };
12
13export function trimTerminalSelection(text: string): string {
14 return text
15 .split("\n")
16 .map((line) => line.trimEnd())
17 .join("\n");
18}
19
20export function normalizeCursorStyle(cursorStyle: string): TermTypes.Terminal["options"]["cursorStyle"] {
21 if (cursorStyle === "underline" || cursorStyle === "bar") {

Callers 3

initTerminalMethod · 0.90
handleTerminalKeydownMethod · 0.90
getContextMenuItemsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected