2015-05-15 08:31:45 +02:00
|
|
|
# readlineSync
|
|
|
|
|
|
|
|
## <a name="deprecated_methods_and_options"></a>Deprecated Methods and Options
|
|
|
|
|
|
|
|
The readlineSync current version is fully compatible with older version.
|
|
|
|
The following methods and options are deprecated.
|
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-setprint_method"></a>`setPrint` method
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use the [`print`](README.md#basic_options-print) option.
|
|
|
|
For the [Default Options](README.md#basic_options), use:
|
2015-05-15 08:31:45 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setDefaultOptions({print: value});
|
|
|
|
```
|
|
|
|
|
|
|
|
instead of:
|
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setPrint(value);
|
|
|
|
```
|
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-setprompt_method"></a>`setPrompt` method
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use the [`prompt`](README.md#basic_options-prompt) option.
|
|
|
|
For the [Default Options](README.md#basic_options), use:
|
2015-05-15 08:31:45 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setDefaultOptions({prompt: value});
|
|
|
|
```
|
|
|
|
|
|
|
|
instead of:
|
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setPrompt(value);
|
|
|
|
```
|
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-setencoding_method"></a>`setEncoding` method
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use the [`encoding`](README.md#basic_options-encoding) option.
|
|
|
|
For the [Default Options](README.md#basic_options), use:
|
2015-05-15 08:31:45 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setDefaultOptions({encoding: value});
|
|
|
|
```
|
|
|
|
|
|
|
|
instead of:
|
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setEncoding(value);
|
|
|
|
```
|
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-setmask_method"></a>`setMask` method
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use the [`mask`](README.md#basic_options-mask) option.
|
|
|
|
For the [Default Options](README.md#basic_options), use:
|
2015-05-15 08:31:45 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setDefaultOptions({mask: value});
|
|
|
|
```
|
|
|
|
|
|
|
|
instead of:
|
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setMask(value);
|
|
|
|
```
|
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-setbuffersize_method"></a>`setBufferSize` method
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use the [`bufferSize`](README.md#basic_options-buffersize) option.
|
|
|
|
For the [Default Options](README.md#basic_options), use:
|
2015-05-15 08:31:45 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setDefaultOptions({bufferSize: value});
|
|
|
|
```
|
|
|
|
|
|
|
|
instead of:
|
|
|
|
|
|
|
|
```js
|
|
|
|
readlineSync.setBufferSize(value);
|
|
|
|
```
|
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-noechoback_option"></a>`noEchoBack` option
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use [`hideEchoBack`](README.md#basic_options-hideechoback) option instead of it.
|
2015-05-15 08:31:45 +02:00
|
|
|
|
|
|
|
### <a name="deprecated_methods_and_options-notrim_option"></a>`noTrim` option
|
|
|
|
|
2015-05-15 08:45:25 +02:00
|
|
|
Use [`keepWhitespace`](README.md#basic_options-keepwhitespace) option instead of it.
|