Update README.md

This commit is contained in:
He4eT 2023-05-21 00:13:49 +03:00
commit 93db8c2224

View file

@ -11,13 +11,13 @@ This repository includes examples of [stdio interface implementation](https://gi
### Initialization ### Initialization
```js ```js
const { glkInterface, sendFn } = const { Dialog, GlkOte, send } =
CheapGlkOte(handlers [, { loggers, size }]) CheapGlkOte(handlers [, { loggers, size }])
``` ```
### Input ### Input
```js ```js
sendFn('open door', inputType, targetWindow) send('open door', inputType, targetWindow)
``` ```
You can receive `inputType` and `id` of `targetWindow` in `onUpdateInputs` handler.<br> You can receive `inputType` and `id` of `targetWindow` in `onUpdateInputs` handler.<br>
You can receive `targetWindow` by its `is` in `onUpdateWindows` handler.<br> You can receive `targetWindow` by its `is` in `onUpdateWindows` handler.<br>
@ -87,7 +87,7 @@ Default loggers:
const defaultLoggers = { const defaultLoggers = {
log: console.log, log: console.log,
warning: console.warn, warning: console.warn,
error: console.error error: console.error,
} }
``` ```
@ -96,7 +96,7 @@ Default sizes:
```js ```js
const defaultSize = { const defaultSize = {
width: 80, width: 80,
height: 25 height: 25,
} }
``` ```