search for: esc_seq

Displaying 1 result from an estimated 1 matches for "esc_seq".

2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...+} + +send_loader = new AsyncLoader(send_done); + + +function maybe_send() { + if (!send_in_progress && open && kb_buf!="") { + send(); + } +} + + +function process_key(k) { +// alert("key="+k); +// return; + kb_buf+=k; + maybe_send(); +} + + +function esc_seq(s) { + return String.fromCharCode(27)+"["+s; +} + + +function key_ev_stop(ev) { + // We want this key event to do absolutely nothing else. + ev.cancelBubble=true; + if (ev.stopPropagation) ev.stopPropagation(); + if (ev.preventDefault) ev.preventDefault(); + try { ev.keyCode=0; } c...