I can only get this the progress bar to display item names when syncMode is set to false. When set to true the item names do not show to the right of the bar.
import terminalKit from "terminal-kit";
const term = terminalKit.terminal;
const items = ["A","B","C","D","E"];
async function main(): Promise<void> {
const fileLoadingProgress = term.progressBar({
title: "Loading",
items: items.length,
syncMode: true,
});
for(const item of items) {
fileLoadingProgress.startItem(item);
await new Promise(res=>setTimeout(res, 1000));
fileLoadingProgress.itemDone(item);
}
}
main();