function consoleloop(){ let x= terminput('') termshow('executing : '+x+' ...') try{ let nfunc = new Function(x) termshow(nfunc()) }catch(e){ termshow('error: '+e) } }