Skip to content

Commit

Permalink
fix rendering empty lines in prompt #890
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jul 29, 2023
1 parent ea9e86a commit 1a53bc3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
* fix CMD wrapping when prompt is empty [#882](https://github.com/jcubic/jquery.terminal/issues/882)
* fix paused terminal when using array as interpreter and RPC without system describe
* fix edge case of disappearing content after refresh [#871](https://github.com/jcubic/jquery.terminal/issues/871)
* fix rendering empty lines prompt and during typing animation [#890](https://github.com/jcubic/jquery.terminal/issues/890)

## 2.36.0
### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@
[![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)
[![Build and test](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&e91d8ab98ab7a99d82093f92146b5e92)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&75da0f6ae07388cf17379f7dcd13e04f)](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
10 changes: 5 additions & 5 deletions js/jquery.terminal-2.36.0.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Tue, 04 Jul 2023 19:13:23 +0000
* Date: Sat, 29 Jul 2023 11:57:12 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -3511,7 +3511,7 @@
var lines = $.terminal.split_equal(tmp_prompt, num_chars);
lines = lines.map(function(line) {
return line.replace(/^\uFFFF+/, '');
}).filter(Boolean);
});
lines = lines.map(function(line) {
if (!$.terminal.have_formatting(line)) {
return '[[;;]' + $.terminal.escape_brackets(line) + ']';
Expand Down Expand Up @@ -5277,7 +5277,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Tue, 04 Jul 2023 19:13:23 +0000',
date: 'Sat, 29 Jul 2023 11:57:12 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -10475,8 +10475,8 @@
if (appending_to_partial) {
partial = wrapper;
} else if (data.newline && partial.length) {
//wrapper = $('<div/>');
//partial = $();
wrapper = $('<div/>');
partial = $();
}
data.finalize(wrapper);
} else {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.36.0.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -3511,7 +3511,7 @@
var lines = $.terminal.split_equal(tmp_prompt, num_chars);
lines = lines.map(function(line) {
return line.replace(/^\uFFFF+/, '');
}).filter(Boolean);
});
lines = lines.map(function(line) {
if (!$.terminal.have_formatting(line)) {
return '[[;;]' + $.terminal.escape_brackets(line) + ']';
Expand Down
10 changes: 5 additions & 5 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Tue, 04 Jul 2023 19:13:23 +0000
* Date: Sat, 29 Jul 2023 11:57:12 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -3511,7 +3511,7 @@
var lines = $.terminal.split_equal(tmp_prompt, num_chars);
lines = lines.map(function(line) {
return line.replace(/^\uFFFF+/, '');
}).filter(Boolean);
});
lines = lines.map(function(line) {
if (!$.terminal.have_formatting(line)) {
return '[[;;]' + $.terminal.escape_brackets(line) + ']';
Expand Down Expand Up @@ -5277,7 +5277,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Tue, 04 Jul 2023 19:13:23 +0000',
date: 'Sat, 29 Jul 2023 11:57:12 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -10475,8 +10475,8 @@
if (appending_to_partial) {
partial = wrapper;
} else if (data.newline && partial.length) {
//wrapper = $('<div/>');
//partial = $();
wrapper = $('<div/>');
partial = $();
}
data.finalize(wrapper);
} else {
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 1a53bc3

Please sign in to comment.