##// END OF EJS Templates
skip permission -> 403 test on Windows...
skip permission -> 403 test on Windows The test actually passes on my VM (Win 7), but not on Jenkins (Server 2012). I haven't figured out how to identify the subset of Windows systems where it won't work, but since the problem appears to be in the test, not the tested code, skipping on Windows seems the right way to go.

File last commit:

r20405:8274a461
r20575:7211fc10
Show More
terminado.js
41 lines | 1.3 KiB | application/javascript | JavascriptLexer
Thomas Kluyver
Terminal basically working...
r18481 define ([], function() {
Matthias Bussonnier
Some code cleanup in javascript and python...
r19739 "use strict";
Thomas Kluyver
Terminal basically working...
r18481 function make_terminal(element, size, ws_url) {
var ws = new WebSocket(ws_url);
Min RK
force Terminal.brokenBold=True...
r19901 Terminal.brokenBold = true;
Thomas Kluyver
Terminal basically working...
r18481 var term = new Terminal({
cols: size.cols,
rows: size.rows,
Min RK
disable screenKeys in term.js...
r20405 screenKeys: false,
Bussonnier Matthias
recompute dummy size dynamically + styling in css
r18489 useStyle: false
Thomas Kluyver
Terminal basically working...
r18481 });
ws.onopen = function(event) {
ws.send(JSON.stringify(["set_size", size.rows, size.cols,
window.innerHeight, window.innerWidth]));
term.on('data', function(data) {
ws.send(JSON.stringify(['stdin', data]));
});
term.on('title', function(title) {
document.title = title;
});
term.open(element);
ws.onmessage = function(event) {
Matthias Bussonnier
Some code cleanup in javascript and python...
r19739 var json_msg = JSON.parse(event.data);
Thomas Kluyver
Terminal basically working...
r18481 switch(json_msg[0]) {
case "stdout":
term.write(json_msg[1]);
break;
case "disconnect":
term.write("\r\n\r\n[CLOSED]\r\n");
break;
}
};
};
return {socket: ws, term: term};
}
return {make_terminal: make_terminal};
});