From dbdf9cc8f4dbc138766bf8b0ea756cbe6fd6ba32 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 8 Dec 2017 12:12:56 -0400 Subject: Make isEnter work with normal terminals --- util/telchars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/telchars.js') diff --git a/util/telchars.js b/util/telchars.js index 7f4d8e4..6908600 100644 --- a/util/telchars.js +++ b/util/telchars.js @@ -6,7 +6,7 @@ const compareBufStr = (buf, str) => { const telchars = { isSpace: buf => buf[0] === 0x20, - isEnter: buf => buf[0] === 0x0d && buf[1] === 0x00, + isEnter: buf => buf[0] === 0x0d, isTab: buf => buf[0] === 0x09, isBackTab: buf => buf[0] === 0x1b && buf[2] === 0x5A, isBackspace: buf => buf[0] === 0x7F, -- cgit 1.3.0-6-gf8a5