Skip to content

Commit

Permalink
feat: optional scrolling for print API (#45)
Browse files Browse the repository at this point in the history
* feat: optional scrolling for `print` API

* chore: update dependencies
  • Loading branch information
mkrl authored Aug 15, 2024
1 parent 7570c9a commit 6b0fffd
Show file tree
Hide file tree
Showing 6 changed files with 6,632 additions and 4,593 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ An object that's being passed to every command function & returned by `initTermi

| Method | Description | Parameters |
|----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| `print(text, isCommand)` | Prints a given text in the terminal (accepts raw HTML) | `text` - String, `isCommand` - Boolean, optional, defaults to false. Count given string as a command (displays prompt & syntax highlight) |
| `print(text, isCommand, scrollIntoView)` | Prints a given text in the terminal (accepts raw HTML) | `text` - String, `isCommand` - Boolean, optional, defaults to false. Count given string as a command (displays prompt & syntax highlight) |
| `run(text)` | Emulates a command execution in a terminal (acts the same way as a user would have typed and pressed Enter) | `text` - String |
| `start()` | Starts a "foreground process": user input is blocked and command prompt never appears. | |
| `stop()` | Stops "foreground process". | |
Expand Down
Loading

0 comments on commit 6b0fffd

Please sign in to comment.