Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ea781616 authored by deuce's avatar deuce

The problem with sbbs_input was the queue names not being unique...

Go back to old design, but append the node number to the queue name.
parent 29abb092
var ai={
charbuf:'',
ansi_started:0,
input_queue:new Queue("dorkit_input"),
input_queue:new Queue("dorkit_input"+(argv[0] === undefined ? '' : argv[0])),
// Called every 100ms *and* every char.
ANSIRe:/^\x1b\[([<-\?]{0,1})([0-;]*)([ -\/]*)([@-~])$/,
......@@ -191,3 +191,5 @@ var ai={
return;
}
};
log('aiQueue Name: '+ai.input_queue.name);
require("sbbsdefs.js", 'SS_PAUSEOFF');
load("ansi_input.js");
var dk_old_ctrlkey_passthru = console.ctrlkey_passthru;
var dk_old_pauseoff = bbs.sys_status & SS_PAUSEOFF;
js.on_exit("console.ctrlkey_passthru=dk_old_ctrlkey_passthru;bbs.sys_status=(bbs.sys_status &~ SS_PAUSEOFF)|dk_old_pauseoff");
......@@ -13,13 +14,6 @@ delete dk.console.local_screen;
/*
* Clears the current screen to black and moves to location 1,1
*/
dk.console.input_queue_callback.push(function() {
'use strict';
var key = console.inkey();
if (key !== '') {
return key;
}
});
dk.console.remote_io = {
clear:function() {
......@@ -87,6 +81,9 @@ dk.console.remote_io = {
}
};
var input_queue = load(true, "sbbs_input.js", bbs.node_num);
js.on_exit("input_queue.write(''); input_queue.poll(0x7fffffff);");
// Get stuff that would come from the dropfile if there was one.
// From the bbs object.
dk.connection.node = bbs.node_num;
......
js.load_path_list.unshift(js.exec_dir+"dorkit/");
if (typeof(system) !== 'undefined')
js.load_path_list.unshift(system.exec_dir+"dorkit/");
load('ansi_input.js');
var q = new Queue("dorkit_input");
load('ansi_input.js', argv[0]);
var k;
while(!js.terminated) {
......
......@@ -260,7 +260,7 @@ var dk = {
keybuf:'',
local_screen:new Screen(80, 24, 7, ' '),
remote_screen:new Screen(80, 24, 7, ' '),
input_queue:new Queue("dorkit_input"),
input_queue:new Queue("dorkit_input" + (js.global.bbs === undefined ? '' : bbs.node_num)),
/*
* Returns a string with ^A codes converted to ANSI or stripped
......@@ -1078,6 +1078,7 @@ var dk = {
}
}
};
log('dkQueue Name: '+dk.console.input_queue.name);
// To avoid using __proto__ since jslint hates it.
dk.console.Private_attr.Private_value = 7;
dk.console.Private_attr.Private_new_attr = new Attribute(7);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment