From 2e350d9df1233294a5934a220f6ac9eeba500f2a Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Wed, 18 Dec 2024 21:02:36 +0100 Subject: [PATCH] (docs) add a note about this and Terminal instance --- docs/docs/intro.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docs/intro.mdx b/docs/docs/intro.mdx index 1984d007..c8cd694a 100644 --- a/docs/docs/intro.mdx +++ b/docs/docs/intro.mdx @@ -78,7 +78,9 @@ characters properly on the terminal you can use [wcwidth](https://github.com/tim which calculates the width of the characters. :::note + `wcwidth` library needs to be included before the jQuery Terminal script file. + ::: You can add this code to your HTML: @@ -123,6 +125,15 @@ This code will create two commands: * `hello` which prints on the terminal text `"hello, world!"`, * `bye` which prints `"goodby"` +:::note + +`this` inside methods is jQuery Terminal object, and `echo` is one of the methods supported by this object. + +Read more about [terminal instance](/docs/deep-dive/terminal) and [echo](/docs/deep-dive/echo). + +::: + + To create arguments to the commands you add them as function paramters: ```javascript