mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Fix ctl
This commit is contained in:
@@ -25,6 +25,11 @@ body
|
||||
white-space: nowrap
|
||||
overflow-x: hidden
|
||||
overflow-y: scroll
|
||||
a
|
||||
text-decoration: underline rgba($fg, .2)
|
||||
transition: text-decoration-color 500ms
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
|
||||
.line.active
|
||||
background-color: $active-bg
|
||||
|
||||
2
butterfly/static/ext.min.js
vendored
2
butterfly/static/ext.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -2808,6 +2808,11 @@ body {
|
||||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
/* Pop ups */ }
|
||||
body a {
|
||||
text-decoration: underline rgba(244, 234, 213, 0.2);
|
||||
transition: text-decoration-color 500ms; }
|
||||
body a:hover {
|
||||
text-decoration: underline; }
|
||||
body .line.active {
|
||||
background-color: transparent; }
|
||||
body .line.extended {
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
write_request = function(e) {
|
||||
return setTimeout(write, 1, e.data);
|
||||
};
|
||||
ctl = function() {
|
||||
ctl = function(e) {
|
||||
var cmd;
|
||||
cmd = JSON.parse(e.data);
|
||||
if (cmd.cmd === 'size') {
|
||||
|
||||
4
butterfly/static/main.min.js
vendored
4
butterfly/static/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -105,7 +105,7 @@ document.addEventListener 'DOMContentLoaded', ->
|
||||
write_request = (e) ->
|
||||
setTimeout write, 1, e.data
|
||||
|
||||
ctl = ->
|
||||
ctl = (e) ->
|
||||
cmd = JSON.parse(e.data)
|
||||
if cmd.cmd is 'size'
|
||||
term.resize cmd.cols, cmd.rows, true
|
||||
|
||||
@@ -421,8 +421,6 @@ class Terminal
|
||||
@document.createTextNode(cursor.textContent), cursor)
|
||||
for active in @body.querySelectorAll(".line.active")
|
||||
active.classList.remove('active')
|
||||
# for active in @body.querySelectorAll(".line.extended")
|
||||
# active.classList.remove('extended')
|
||||
|
||||
newOut = ''
|
||||
modified = []
|
||||
|
||||
Reference in New Issue
Block a user