From 034a26c4789c7b48e34019e4ba8c4776ddb2e5ac Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 27 Jan 2013 11:33:04 -0600 Subject: [PATCH] another typo --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e44d240..87fbd2f 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,10 @@ program.write('Hi again!'); program.bg('!white'); program.feed(); -program.getCursor(function(data) { - console.log('Cursor is at: %s, %s.', data.x, data.y); +program.getCursor(function(err, data) { + if (!err) { + console.log('Cursor is at: %s, %s.', data.x, data.y); + } program.charset('SCLD'); program.write('abcdefghijklmnopqrstuvwxyz0123456789');