From 93db8c2224bb70794984c6eb968cf6d764f68ed1 Mon Sep 17 00:00:00 2001 From: He4eT Date: Sun, 21 May 2023 00:13:49 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c06fff0..c9c5535 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ This repository includes examples of [stdio interface implementation](https://gi ### Initialization ```js -const { glkInterface, sendFn } = +const { Dialog, GlkOte, send } = CheapGlkOte(handlers [, { loggers, size }]) ``` ### Input ```js -sendFn('open door', inputType, targetWindow) +send('open door', inputType, targetWindow) ``` You can receive `inputType` and `id` of `targetWindow` in `onUpdateInputs` handler.
You can receive `targetWindow` by its `is` in `onUpdateWindows` handler.
@@ -87,7 +87,7 @@ Default loggers: const defaultLoggers = { log: console.log, warning: console.warn, - error: console.error + error: console.error, } ``` @@ -96,7 +96,7 @@ Default sizes: ```js const defaultSize = { width: 80, - height: 25 + height: 25, } ```