Skip to content

Commit

Permalink
fix get_output to return proper string #687
Browse files Browse the repository at this point in the history
Introduce snapshot output in OutputLines class that contain
lines that are printed on terminal. So they can be just
returned to the user
  • Loading branch information
jcubic committed Sep 12, 2021
1 parent 9fccf95 commit 2514e37
Show file tree
Hide file tree
Showing 8 changed files with 750 additions and 543 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -11,8 +11,8 @@

[![npm](https://img.shields.io/badge/npm-DEV-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
![bower](https://img.shields.io/badge/bower-DEV-yellow.svg)
[![travis](https://travis-ci.org/jcubic/jquery.terminal.svg?branch=devel&d6089f7f94fa4c3e150a6cc6dbe9749414ec585f)](https://travis-ci.org/jcubic/jquery.terminal)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&2dc78f08aa5532022fdffba4811c7d6f)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
[![travis](https://travis-ci.org/jcubic/jquery.terminal.svg?branch=devel&c87b3eb6c68427fdd6d51b50e7f2af69d5521469)](https://travis-ci.org/jcubic/jquery.terminal)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&adf0be0159c06fd2998bde8bcba30c02)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
![downloads](https://img.shields.io/npm/dm/jquery.terminal.svg?style=flat)
[![Paid Support](https://data.jsdelivr.com/v1/package/npm/jquery.terminal/badge?style=rounded)](https://www.jsdelivr.com/package/npm/jquery.terminal)
[![](https://img.shields.io/badge/paid-support-354465.svg)](https://support.jcubic.pl/)
Expand Down
427 changes: 248 additions & 179 deletions js/jquery.terminal-2.29.1.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal-2.29.1.min.js

Large diffs are not rendered by default.

423 changes: 246 additions & 177 deletions js/jquery.terminal-src.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.d.ts
Expand Up @@ -773,7 +773,7 @@ interface JQueryTerminal<TElement = HTMLElement> extends JQuery<TElement> {
set_prompt(prompt: JQueryTerminal.ExtendedPrompt, options?: JQueryTerminal.promptOptions): JQueryTerminal | JQuery.Promise<void>;
get_prompt<T extends JQueryTerminal.ExtendedPrompt>(): T;
set_mask(toggle?: boolean | string): JQueryTerminal;
get_output<T = TypeOrPromise<string>>(): T;
get_output(): string;
get_output(raw: boolean): JQueryTerminal.Lines;
resize(handler?: JQuery.TypeEventHandler<TElement, null, TElement, TElement, 'resize'> | false): this;
resize(width?: number, height?: number): JQueryTerminal;
Expand Down
427 changes: 248 additions & 179 deletions js/jquery.terminal.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 2514e37

Please sign in to comment.