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

Commits (2)
......@@ -238,6 +238,8 @@ var Typeahead = function (options) {
attr: console.attributes,
focus: true,
maxResults: 0,
autoDelete: false,
gotInput: false,
};
var display = {
......@@ -460,6 +462,10 @@ var Typeahead = function (options) {
}
break;
default:
if (properties.autoDelete && !properties.gotInput) {
properties.text = '';
properties.position = 0;
}
if (properties.text.length === properties.len) break;
key = strip_ctrl(key);
if (properties.position !== properties.text.length) {
......@@ -476,6 +482,7 @@ var Typeahead = function (options) {
change = true;
break;
}
properties.gotInput = true;
if (change) {
display.inputFrame.clear();
display.inputFrame.putmsg(properties.text);
......
......@@ -108,7 +108,8 @@ function get_address() {
x: 1,
y: 1,
prompt: '\0014\001h\001wAddress: ',
text: 'gopher.floodgap.com:70'
text: 'gopher.floodgap.com:70',
autoDelete: true,
});
const ret = typeahead.getstr().split(':');
typeahead.close();
......