Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test control handles tab
  • Loading branch information
cosmo-grant committed Nov 24, 2025
commit b29d1fbf84468d089f45d174543132bb9e66dc6b
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ describe("TerminalBuffer", () => {
`);
});

test("control handles tab", () => {
const buffer = new TerminalBuffer();
buffer.writeChar("a");
buffer.control("\t");
buffer.writeChar("b");
expect(buffer.render()).toMatchInlineSnapshot(`"a b"`);
});

test("control handles carriage return", () => {
const buffer = new TerminalBuffer();
buffer.writeChar("a");
Expand Down