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

Run commands upon button press #173

Closed
BjornTheProgrammer opened this issue Aug 18, 2022 · 1 comment
Closed

Run commands upon button press #173

BjornTheProgrammer opened this issue Aug 18, 2022 · 1 comment

Comments

@BjornTheProgrammer
Copy link

Is it possible to run commands via button press?

For example

import React from "react";

function CommandButton() {
	return (
		<button 
			onClick={() => ReactTerminal.cd("home")}
		>
			Run Command
		</button>
	);
}

export default CommandButton;
@bony2023
Copy link
Owner

bony2023 commented Nov 9, 2023

feature added in #233

@bony2023 bony2023 closed this as completed Nov 9, 2023
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

2 participants