diff --git a/README.md b/README.md index 681bc96..4a71d36 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ readlineSync tries to let your script have a conversation with the user via a co Basic OptionsUtility MethodsPlaceholders -* Some simple cases: +* Simple case: ```js var readlineSync = require('readline-sync'); @@ -31,7 +31,7 @@ What is your favorite food? :**** Oh, CookieMonster loves tofu! ``` -* Enter key is not necessary: +* Get user's response without Enter key: ```js var readlineSync = require('readline-sync'); @@ -85,12 +85,7 @@ while (true) { console.log('\nA value the user requested: ' + value); ``` -```console - [Z] <- -> [X] FIX: [SPACE] -|---------------------------------------------------O---------| 51 - -A value the user requested: 51 -``` +![sample](screen_03.gif) ## Installation @@ -216,6 +211,12 @@ readlineSync.setDefaultOptions({ }); ``` +```console +[13148kb]$ foo +[13160kb]$ bar +[13200kb]$ +``` + ### `hideEchoBack` *Type:* boolean @@ -252,7 +253,7 @@ secret = readlineSync.question('Please whisper sweet words :', { }); ``` -![sample](cl_02.png) +![sample](screen_02.gif) ### `limit` @@ -428,7 +429,7 @@ For example: * Pass the plain texts to the Logger (e.g. [log4js](https://github.com/nomiddlename/log4js-node)), after clean the colored texts. -![sample](cl_01.png) +![sample](screen_01.png) ```js var readlineSync = require('readline-sync'), diff --git a/cl_01.png b/cl_01.png deleted file mode 100644 index 7672c97..0000000 Binary files a/cl_01.png and /dev/null differ diff --git a/cl_02.png b/cl_02.png deleted file mode 100644 index e593643..0000000 Binary files a/cl_02.png and /dev/null differ diff --git a/screen_01.png b/screen_01.png new file mode 100644 index 0000000..1ee47d7 Binary files /dev/null and b/screen_01.png differ diff --git a/screen_02.gif b/screen_02.gif new file mode 100644 index 0000000..4a49db5 Binary files /dev/null and b/screen_02.gif differ diff --git a/screen_03.gif b/screen_03.gif new file mode 100644 index 0000000..c97ba6f Binary files /dev/null and b/screen_03.gif differ