Skip to content

Commit 25e2563

Browse files
committed
merge with devel
2 parents 7b2fa58 + e3b7b48 commit 25e2563

18 files changed

+252
-193
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Next
2+
* create empty div for function line that return empty string, that was causing issues with update
3+
[#363](https://github.com/jcubic/jquery.terminal/issues/363)
4+
* set classes from terminal to fake terminal that is used to calculate character size
5+
* don't use length css variable on formatting when length is the same as wcwidth
6+
* css fixes for terminal in jQuery UI dialog (dterm)
7+
18
## 1.11.2
29
* fix issue with --char-width == 0 if terminal have display:none
310
* fix DELETE numpad key on IE

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Jakub Jankiewicz
3+
Copyright (c) 2011-2018 Jakub Jankiewicz
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@ If you want to contrubite read [CONTRIBUTING.md](CONTRIBUTING.md) first. Here ar
186186

187187
Licensed under [MIT](http://opensource.org/licenses/MIT) license
188188

189-
Copyright (c) 2011-2017 [Jakub Jankiewicz](http://jcubic.pl/jakub-jankiewicz)
189+
Copyright (c) 2011-2018 [Jakub Jankiewicz](http://jcubic.pl/jakub-jankiewicz)

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
__ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
55
/ / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
66
\___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
7-
\/ /____/ version 1.11.2
7+
\/ /____/ version DEV
88
```
99
http://terminal.jcubic.pl
1010

11-
[![npm](https://img.shields.io/badge/npm-1.11.2-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
12-
![bower](https://img.shields.io/badge/bower-1.11.2-yellow.svg)
13-
[![travis](https://travis-ci.org/jcubic/jquery.terminal.svg?branch=master)](https://travis-ci.org/jcubic/jquery.terminal)
11+
[![npm](https://img.shields.io/badge/npm-DEV-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
12+
![bower](https://img.shields.io/badge/bower-DEV-yellow.svg)
13+
[![travis](https://travis-ci.org/jcubic/jquery.terminal.svg?branch=devel)](https://travis-ci.org/jcubic/jquery.terminal)
1414
[![Known Vulnerabilities](https://snyk.io/test/npm/jquery.terminal/badge.svg)](https://snyk.io/test/npm/jquery.terminal)
15-
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=master&a5d5e31e60f437ec7098a886ab4bc6d8)](https://coveralls.io/github/jcubic/jquery.terminal?branch=master)
15+
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&a5d5e31e60f437ec7098a886ab4bc6d8)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
1616
![downloads](https://img.shields.io/npm/dm/jquery.terminal.svg?style=flat)
1717
[![package quality](http://npm.packagequality.com/shield/jquery.terminal.svg)](http://packagequality.com/#?package=jquery.terminal)
1818

@@ -67,20 +67,20 @@ Include jQuery library, you can use cdn from http://jquery.com/download/
6767
```
6868

6969

70-
Then include js/jquery.terminal-1.11.2.min.js and css/jquery.terminal-1.11.2.min.css
70+
Then include js/jquery.terminal-DEV.min.js and css/jquery.terminal-DEV.min.css
7171

7272
You can grab the files from CDN:
7373

7474
```html
75-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.terminal/1.11.2/js/jquery.terminal.min.js"></script>
76-
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery.terminal/1.11.2/css/jquery.terminal.min.css" rel="stylesheet"/>
75+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.terminal/DEV/js/jquery.terminal.min.js"></script>
76+
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery.terminal/DEV/css/jquery.terminal.min.css" rel="stylesheet"/>
7777
```
7878

7979
or
8080

8181
```html
82-
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal@1.11.2/js/jquery.terminal.min.js"></script>
83-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery.terminal@1.11.2/css/jquery.terminal.min.css">
82+
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal@DEV/js/jquery.terminal.min.js"></script>
83+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery.terminal@DEV/css/jquery.terminal.min.css">
8484
```
8585

8686
If you always want latest version, you can grab the files directly from github using rawgit.com (that service grab the files from github and use propert MIME type so you can use it in your page, you can also grab from devel branch):
@@ -186,4 +186,4 @@ If you want to contrubite read [CONTRIBUTING.md](CONTRIBUTING.md) first. Here ar
186186

187187
Licensed under [MIT](http://opensource.org/licenses/MIT) license
188188

189-
Copyright (c) 2011-2017 [Jakub Jankiewicz](http://jcubic.pl/jakub-jankiewicz)
189+
Copyright (c) 2011-2018 [Jakub Jankiewicz](http://jcubic.pl/jakub-jankiewicz)

css/jquery.terminal-1.11.2.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
55
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
66
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
7-
* \/ /____/ version 1.11.2
7+
* \/ /____/ version DEV
88
* http://terminal.jcubic.pl
99
*
1010
* This file is part of jQuery Terminal.
1111
*
12-
* Copyright (c) 2011-2017 Jakub Jankiewicz <http://jcubic.pl>
12+
* Copyright (c) 2011-2018 Jakub Jankiewicz <http://jcubic.pl>
1313
* Released under the MIT license
1414
*
15-
* Date: Thu, 28 Dec 2017 08:38:49 +0000
15+
* Date: Sun, 07 Jan 2018 08:27:00 +0000
1616
*/
1717
.terminal .terminal-output .format, .cmd .format,
1818
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
@@ -113,6 +113,9 @@ body.terminal {
113113
line-height: 14px;
114114
height: auto;
115115
}
116+
.terminal .terminal-output > div:not(.raw) div {
117+
white-space: nowrap;
118+
}
116119
.cmd .prompt > span {
117120
float: left;
118121
}
@@ -132,15 +135,14 @@ body.terminal {
132135
.cmd .prompt + div {
133136
clear: right;
134137
}
135-
.terminal-output > div, .terminal-output > div > div {
136-
/*padding-top: 3px;*/
138+
.terminal-output > div > div {
137139
min-height: 14px;
138140
}
139141
terminal .terminal-output > div {
140142
margin-top: -1px;
141143
}
142-
.terminal-output > div > div * {
143-
overflow-wrap: break-word; /* when echo html */
144+
.terminal-output > div.raw > div * {
145+
overflow-wrap: break-word;
144146
word-wrap: break-word;
145147
}
146148
.terminal .font {
@@ -263,9 +265,8 @@ terminal .terminal-output > div {
263265
width: 100%;
264266
height: 100%;
265267
box-sizing: border-box;
266-
padding: 0;
267268
}
268-
.ui-dialog-content .terminal, .ui-dialog-content .terminal .terminal-fill {
269+
.ui-dialog .ui-dialog-content.dterm {
269270
padding: 0;
270271
}
271272
.clear {
@@ -469,11 +470,11 @@ terminal .terminal-output > div {
469470
width: calc(var(--length, 1) * var(--char-width) * 1px);
470471
display: inline-block;
471472
}
472-
.terminal, .cmd, .terminal .terminal-output div div, .cmd .prompt {
473+
.terminal, .cmd, .terminal .terminal-output > div > div, .cmd .prompt {
473474
font-size: calc(var(--size, 1) * 12px);
474475
line-height: calc(var(--size, 1) * 14px);
475476
}
476-
.terminal .terminal-output div div {
477+
.terminal .terminal-output > div > div {
477478
min-height: calc(var(--size, 1) * 14px);
478479
}
479480
.terminal .inverted, .cmd .inverted {

css/jquery.terminal-1.11.2.min.css

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/jquery.terminal-src.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* This file is part of jQuery Terminal.
1111
*
12-
* Copyright (c) 2011-2017 Jakub Jankiewicz <http://jcubic.pl>
12+
* Copyright (c) 2011-2018 Jakub Jankiewicz <http://jcubic.pl>
1313
* Released under the MIT license
1414
*
1515
* Date: {{DATE}}
@@ -113,6 +113,9 @@ body.terminal {
113113
line-height: 14px;
114114
height: auto;
115115
}
116+
.terminal .terminal-output > div:not(.raw) div {
117+
white-space: nowrap;
118+
}
116119
.cmd .prompt > span {
117120
float: left;
118121
}
@@ -132,15 +135,14 @@ body.terminal {
132135
.cmd .prompt + div {
133136
clear: right;
134137
}
135-
.terminal-output > div, .terminal-output > div > div {
136-
/*padding-top: 3px;*/
138+
.terminal-output > div > div {
137139
min-height: 14px;
138140
}
139141
terminal .terminal-output > div {
140142
margin-top: -1px;
141143
}
142-
.terminal-output > div > div * {
143-
overflow-wrap: break-word; /* when echo html */
144+
.terminal-output > div.raw > div * {
145+
overflow-wrap: break-word;
144146
word-wrap: break-word;
145147
}
146148
.terminal .font {
@@ -263,9 +265,8 @@ terminal .terminal-output > div {
263265
width: 100%;
264266
height: 100%;
265267
box-sizing: border-box;
266-
padding: 0;
267268
}
268-
.ui-dialog-content .terminal, .ui-dialog-content .terminal .terminal-fill {
269+
.ui-dialog .ui-dialog-content.dterm {
269270
padding: 0;
270271
}
271272
.clear {
@@ -469,11 +470,11 @@ terminal .terminal-output > div {
469470
width: calc(var(--length, 1) * var(--char-width) * 1px);
470471
display: inline-block;
471472
}
472-
.terminal, .cmd, .terminal .terminal-output div div, .cmd .prompt {
473+
.terminal, .cmd, .terminal .terminal-output > div > div, .cmd .prompt {
473474
font-size: calc(var(--size, 1) * 12px);
474475
line-height: calc(var(--size, 1) * 14px);
475476
}
476-
.terminal .terminal-output div div {
477+
.terminal .terminal-output > div > div {
477478
min-height: calc(var(--size, 1) * 14px);
478479
}
479480
.terminal .inverted, .cmd .inverted {

css/jquery.terminal.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
55
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
66
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
7-
* \/ /____/ version 1.11.2
7+
* \/ /____/ version DEV
88
* http://terminal.jcubic.pl
99
*
1010
* This file is part of jQuery Terminal.
1111
*
12-
* Copyright (c) 2011-2017 Jakub Jankiewicz <http://jcubic.pl>
12+
* Copyright (c) 2011-2018 Jakub Jankiewicz <http://jcubic.pl>
1313
* Released under the MIT license
1414
*
15-
* Date: Thu, 28 Dec 2017 08:38:49 +0000
15+
* Date: Sun, 07 Jan 2018 08:27:00 +0000
1616
*/
1717
.terminal .terminal-output .format, .cmd .format,
1818
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
@@ -113,6 +113,9 @@ body.terminal {
113113
line-height: 14px;
114114
height: auto;
115115
}
116+
.terminal .terminal-output > div:not(.raw) div {
117+
white-space: nowrap;
118+
}
116119
.cmd .prompt > span {
117120
float: left;
118121
}
@@ -132,15 +135,14 @@ body.terminal {
132135
.cmd .prompt + div {
133136
clear: right;
134137
}
135-
.terminal-output > div, .terminal-output > div > div {
136-
/*padding-top: 3px;*/
138+
.terminal-output > div > div {
137139
min-height: 14px;
138140
}
139141
terminal .terminal-output > div {
140142
margin-top: -1px;
141143
}
142-
.terminal-output > div > div * {
143-
overflow-wrap: break-word; /* when echo html */
144+
.terminal-output > div.raw > div * {
145+
overflow-wrap: break-word;
144146
word-wrap: break-word;
145147
}
146148
.terminal .font {
@@ -263,9 +265,8 @@ terminal .terminal-output > div {
263265
width: 100%;
264266
height: 100%;
265267
box-sizing: border-box;
266-
padding: 0;
267268
}
268-
.ui-dialog-content .terminal, .ui-dialog-content .terminal .terminal-fill {
269+
.ui-dialog .ui-dialog-content.dterm {
269270
padding: 0;
270271
}
271272
.clear {
@@ -469,11 +470,11 @@ terminal .terminal-output > div {
469470
width: calc(var(--length, 1) * var(--char-width) * 1px);
470471
display: inline-block;
471472
}
472-
.terminal, .cmd, .terminal .terminal-output div div, .cmd .prompt {
473+
.terminal, .cmd, .terminal .terminal-output > div > div, .cmd .prompt {
473474
font-size: calc(var(--size, 1) * 12px);
474475
line-height: calc(var(--size, 1) * 14px);
475476
}
476-
.terminal .terminal-output div div {
477+
.terminal .terminal-output > div > div {
477478
min-height: calc(var(--size, 1) * 14px);
478479
}
479480
.terminal .inverted, .cmd .inverted {

0 commit comments

Comments
 (0)