kopia lustrzana https://github.com/c9/core
Terminal widget is now working
rodzic
68fa6d861b
commit
1b44970f26
|
@ -83,7 +83,7 @@
|
||||||
"c9.ide.help.support": "#60e88f5680",
|
"c9.ide.help.support": "#60e88f5680",
|
||||||
"c9.ide.imgeditor": "#08bbc53578",
|
"c9.ide.imgeditor": "#08bbc53578",
|
||||||
"c9.ide.immediate": "#6845a93705",
|
"c9.ide.immediate": "#6845a93705",
|
||||||
"c9.ide.installer": "#7a354bbd17",
|
"c9.ide.installer": "#e7a08d2cc0",
|
||||||
"c9.ide.mount": "#cb45b621f1",
|
"c9.ide.mount": "#cb45b621f1",
|
||||||
"c9.ide.navigate": "#64156c7f4a",
|
"c9.ide.navigate": "#64156c7f4a",
|
||||||
"c9.ide.newresource": "#f1f0624768",
|
"c9.ide.newresource": "#f1f0624768",
|
||||||
|
|
|
@ -130,6 +130,9 @@ define(function(require, module, exports) {
|
||||||
if (allowClose && e.keyCode == 27)
|
if (allowClose && e.keyCode == 27)
|
||||||
dialog.hide();
|
dialog.hide();
|
||||||
});
|
});
|
||||||
|
dialog.on("resize", function(){
|
||||||
|
emit("resize");
|
||||||
|
});
|
||||||
|
|
||||||
commands.addCommand({
|
commands.addCommand({
|
||||||
name: plugin.name,
|
name: plugin.name,
|
||||||
|
|
|
@ -20275,6 +20275,9 @@ apf.Interactive = function(){
|
||||||
|
|
||||||
doResize(e);
|
doResize(e);
|
||||||
|
|
||||||
|
if (_self.dispatchEvent)
|
||||||
|
_self.dispatchEvent("resize");
|
||||||
|
|
||||||
//overThreshold = true;
|
//overThreshold = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,14 +105,7 @@ define(function(require, exports, module) {
|
||||||
if (drawn) return;
|
if (drawn) return;
|
||||||
drawn = true;
|
drawn = true;
|
||||||
|
|
||||||
aceterm = Aceterm.createEditor(null, "ace/theme/idle_fingers");
|
aceterm = Aceterm.createEditor(htmlNode, "ace/theme/idle_fingers");
|
||||||
aceterm.container.style.position = "absolute";
|
|
||||||
aceterm.container.style.left = "0px";
|
|
||||||
aceterm.container.style.right = "0px";
|
|
||||||
aceterm.container.style.top = "0px";
|
|
||||||
aceterm.container.style.bottom = "0px";
|
|
||||||
|
|
||||||
htmlNode.appendChild(aceterm.container);
|
|
||||||
|
|
||||||
terminal = new Aceterm(cols, rows, send);
|
terminal = new Aceterm(cols, rows, send);
|
||||||
aceterm.setSession(terminal.aceSession);
|
aceterm.setSession(terminal.aceSession);
|
||||||
|
@ -269,6 +262,11 @@ define(function(require, exports, module) {
|
||||||
*/
|
*/
|
||||||
get theme(){ return aceterm.renderer.theme.cssClass; },
|
get theme(){ return aceterm.renderer.theme.cssClass; },
|
||||||
set theme(value){ aceterm.renderer.setTheme({cssClass: value}); },
|
set theme(value){ aceterm.renderer.setTheme({cssClass: value}); },
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
get convertEol(){ return terminal.convertEol || false; },
|
||||||
|
set convertEol(value){ terminal.convertEol = value; },
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
_events: [
|
_events: [
|
||||||
|
|
Ładowanie…
Reference in New Issue