Skip to content

Commit

Permalink
fix selection/click on text that was echo without newline
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 16, 2022
1 parent 162fa9a commit 3bc4772
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@
* fix when login function is not async
* fix calling login_name in dynamic prompt
* fix masking command on typing animation [#770](https://github.com/jcubic/jquery.terminal/issues/770)
* fix selection/click on text that was echo without newline (when prompt is still in same line)

## 2.32.1
### Bugfix
Expand Down
13 changes: 12 additions & 1 deletion css/jquery.terminal-2.32.1.css
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2021 Jakub Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Sun, 27 Mar 2022 15:03:59 +0000
* Date: Sat, 16 Apr 2022 13:23:44 +0000
*/

.terminal .terminal-output .format, .cmd .format,
Expand Down Expand Up @@ -75,6 +75,7 @@
line-height: initial;
}
.terminal-scroller {
position: relative;
overflow-y: auto;
scrollbar-gutter: stable;
height: 100%;
Expand Down Expand Up @@ -704,6 +705,16 @@ terminal .terminal-output > div {
border-color: #000;
}
*/
/* fix selection/click on text that was echo without newline while prompt is relocated */
.terminal .cmd {
pointer-events: none;
}
.terminal .cmd-prompt * {
pointer-events: visible;
}
.terminal .cmd-wrapper > div, .terminal .cmd textarea {
pointer-events: visible;
}
.terminal h1::selection,
.terminal h2::selection,
.terminal h3::selection,
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal-2.32.1.min.css

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions css/jquery.terminal-src.css
Expand Up @@ -75,6 +75,7 @@
line-height: initial;
}
.terminal-scroller {
position: relative;
overflow-y: auto;
scrollbar-gutter: stable;
height: 100%;
Expand Down Expand Up @@ -704,6 +705,16 @@ terminal .terminal-output > div {
border-color: #000;
}
*/
/* fix selection/click on text that was echo without newline while prompt is relocated */
.terminal .cmd {
pointer-events: none;
}
.terminal .cmd-prompt * {
pointer-events: visible;
}
.terminal .cmd-wrapper > div, .terminal .cmd textarea {
pointer-events: visible;
}
.terminal h1::selection,
.terminal h2::selection,
.terminal h3::selection,
Expand Down
13 changes: 12 additions & 1 deletion css/jquery.terminal.css
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2021 Jakub Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Sun, 27 Mar 2022 15:03:59 +0000
* Date: Sat, 16 Apr 2022 13:23:44 +0000
*/

.terminal .terminal-output .format, .cmd .format,
Expand Down Expand Up @@ -75,6 +75,7 @@
line-height: initial;
}
.terminal-scroller {
position: relative;
overflow-y: auto;
scrollbar-gutter: stable;
height: 100%;
Expand Down Expand Up @@ -704,6 +705,16 @@ terminal .terminal-output > div {
border-color: #000;
}
*/
/* fix selection/click on text that was echo without newline while prompt is relocated */
.terminal .cmd {
pointer-events: none;
}
.terminal .cmd-prompt * {
pointer-events: visible;
}
.terminal .cmd-wrapper > div, .terminal .cmd textarea {
pointer-events: visible;
}
.terminal h1::selection,
.terminal h2::selection,
.terminal h3::selection,
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal.min.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal-2.32.1.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 10 Apr 2022 10:26:37 +0000
* Date: Sat, 16 Apr 2022 13:23:43 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5171,7 +5171,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 10 Apr 2022 10:26:37 +0000',
date: 'Sat, 16 Apr 2022 13:23:43 +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.32.1.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 10 Apr 2022 10:26:37 +0000
* Date: Sat, 16 Apr 2022 13:23:43 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5171,7 +5171,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 10 Apr 2022 10:26:37 +0000',
date: 'Sat, 16 Apr 2022 13:23:43 +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 3bc4772

Please sign in to comment.