🚀 add new default bar in stl.process_bar

This commit is contained in:
ValKmjolnir 2022-07-25 22:15:40 +08:00
parent ac8652f864
commit ea33ce020c
2 changed files with 10 additions and 2 deletions

View File

@ -194,8 +194,12 @@ nasal_ast nasal_import::load(nasal_ast& root,u16 fileindex)
lib_loaded=true;
}
for(auto& i:root.child())
{
if(imptchk(i))
linker(new_root,fimpt(i));
else
break;
}
// add root to the back of new_root
nasal_ast file_head(0,ast_file);
file_head.set_num(fileindex);

View File

@ -24,7 +24,8 @@ process_bar.bar=func(){
square:"√",
equal:"=",
space:" ",
point:"."
point:".",
line:"━"
};
var separator={
angle_bracket:["<",">"],
@ -220,6 +221,8 @@ process_bar.default_bar=func(name="classic",length=20){
return process_bar.bar("deep_shadow","light_shadow","line",length);
elsif(name=="block")
return process_bar.bar("block","light_shadow","line",length);
elsif(name=="oneline")
return process_bar.bar("line","space","space",length);
else
return process_bar.bar("sharp","point","bracket",length);
}
@ -271,7 +274,8 @@ var show=func(){
"dots ":process_bar.default_bar("dots",40),
"ticks ":process_bar.default_bar("ticks",40),
"deep_shadow":process_bar.default_bar("deep_shadow",40),
"block ":process_bar.default_bar("block",40)
"block ":process_bar.default_bar("block",40),
"oneline ":process_bar.default_bar("oneline",40)
};
var spinners={
"rise ":process_bar.default_spinner("rise",16),