mirror of
https://github.com/He4eT/cheap-glkote.git
synced 2026-05-05 00:47:28 +00:00
Update README.md
This commit is contained in:
parent
e8ad18ffe4
commit
93db8c2224
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue