Skip to content

Commit 51224f1

Browse files
proppyry
authored andcommitted
add test for readline putty support
1 parent d9eb649 commit 51224f1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/simple/test-readline.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ var key = {
1616
rxvt: {
1717
home: [27, 91, 55],
1818
end: [27, 91, 56]
19+
},
20+
putty: {
21+
home: [27, 91, 49, 126],
22+
end: [27, 91, 52, 126]
1923
}
2024
};
2125

@@ -49,6 +53,10 @@ rl.write(key.gnome.home);
4953
assert.equal(0, rl.cursor);
5054
rl.write(key.gnome.end);
5155
assert.equal(3, rl.cursor);
56+
rl.write(key.putty.home);
57+
assert.equal(0, rl.cursor);
58+
rl.write(key.putty.end);
59+
assert.equal(3, rl.cursor);
5260

5361
rl = readlineFakeStream();
5462
rl.write('foo bar.hop/zoo');

0 commit comments

Comments
 (0)