configurable -btwidth via commandline

This commit is contained in:
Zeno Rogue 2018-09-30 16:22:57 +02:00
parent 3081773f86
commit fc06397ccc
1 changed files with 11 additions and 0 deletions

View File

@ -203,5 +203,16 @@ namespace binary {
}
return gm * where;
}
auto bt_config = addHook(hooks_args, 0, [] () {
using namespace arg;
if(argis("-btwidth")) {
shift(); vid.binary_width = argf();
need_reset_geometry = true;
return 0;
}
return 1;
});
}
}