Skip to content

Commit

Permalink
fix visible formatting in prompt #922
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 22, 2024
1 parent fd4ca28 commit e85f6e7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,11 +1,15 @@
## 2.40.1
### Bugfix
* fix visible formatting in prompt when return string from command [#922](https://github.com/jcubic/jquery.terminal/issues/922)

## 2.40.0
### Features
* don't force any attributes when using xml (`span`, `img`, and `a` tags) [#913](https://github.com/jcubic/jquery.terminal/issues/913)
* alow using attributes in color xml tags [#924](https://github.com/jcubic/jquery.terminal/issues/924)
### Bugfix
* fix init and resize of long prompt [#919](https://github.com/jcubic/jquery.terminal/issues/919)
* fix occasional selecting Accessibility label (about clipboard textarea) in CMD
* fix sync commands and dynamic prompt [#923](https://github.com/jcubic/jquery.terminal/issues/923) [#922](https://github.com/jcubic/jquery.terminal/issues/922)
* fix sync commands and dynamic prompt [#923](https://github.com/jcubic/jquery.terminal/issues/923)
* fix calling `onCommandChange` when command don't change
* fix sequence of animations in echo without newline [#930](https://github.com/jcubic/jquery.terminal/issues/930)
* fix flash of old dynamic prompt on enter [#926](https://github.com/jcubic/jquery.terminal/issues/926)
Expand Down
8 changes: 5 additions & 3 deletions js/jquery.terminal-2.40.0.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 21 Apr 2024 10:26:14 +0000
* Date: Mon, 22 Apr 2024 12:44:48 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -2383,7 +2383,9 @@
}
if (is_function(prompt)) {
if (promise && is_function(promise.then)) {
promise.then(draw_prompt);
promise.then(function() {
draw_prompt();
});
} else {
draw_prompt();
}
Expand Down Expand Up @@ -5308,7 +5310,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: '2.40.0',
date: 'Sun, 21 Apr 2024 10:26:14 +0000',
date: 'Mon, 22 Apr 2024 12:44:48 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.40.0.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -2383,7 +2383,9 @@
}
if (is_function(prompt)) {
if (promise && is_function(promise.then)) {
promise.then(draw_prompt);
promise.then(function() {
draw_prompt();
});
} else {
draw_prompt();
}
Expand Down
8 changes: 5 additions & 3 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 21 Apr 2024 10:26:14 +0000
* Date: Mon, 22 Apr 2024 12:44:48 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -2383,7 +2383,9 @@
}
if (is_function(prompt)) {
if (promise && is_function(promise.then)) {
promise.then(draw_prompt);
promise.then(function() {
draw_prompt();
});
} else {
draw_prompt();
}
Expand Down Expand Up @@ -5308,7 +5310,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: '2.40.0',
date: 'Sun, 21 Apr 2024 10:26:14 +0000',
date: 'Mon, 22 Apr 2024 12:44:48 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
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 e85f6e7

Please sign in to comment.