Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
callenAUS opened this issue Oct 10, 2024 · 0 comments
Open

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

callenAUS opened this issue Oct 10, 2024 · 0 comments

Comments

@callenAUS
Copy link

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant