Skip to content

progressBar issue with syncMode=true and item mode on #251

@callenAUS

Description

@callenAUS

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions