refactor(tui): remove unused OSC8 wrapper · openclaw/openclaw@e9229ab
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Verifies OSC8 hyperlink formatting for TUI terminal output. |
2 | 2 | import { describe, expect, it } from "vitest"; |
3 | | -import { addOsc8Hyperlinks, extractUrls, wrapOsc8 } from "./osc8-hyperlinks.js"; |
4 | | - |
5 | | -describe("wrapOsc8", () => { |
6 | | -it("wraps text with OSC 8 open and close sequences", () => { |
7 | | -const result = wrapOsc8("https://example.com", "click here"); |
8 | | -expect(result).toBe("\x1b]8;;https://example.com\x07click here\x1b]8;;\x07"); |
9 | | -}); |
10 | | - |
11 | | -it("handles empty text", () => { |
12 | | -const result = wrapOsc8("https://example.com", ""); |
13 | | -expect(result).toBe("\x1b]8;;https://example.com\x07\x1b]8;;\x07"); |
14 | | -}); |
15 | | -}); |
| 3 | +import { addOsc8Hyperlinks, extractUrls } from "./osc8-hyperlinks.js"; |
16 | 4 | |
17 | 5 | describe("extractUrls", () => { |
18 | 6 | it("extracts bare URLs", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。