Repository URL to install this package:
|
Version:
0.4.44 ▾
|
import React from "react";
type Props = {
/** Command to run, e.g. ["bash"] or ["ssh", "user@host"] */
command: string[];
/** Environment variables to pass */
env?: Record<string, string>;
/** Working directory */
cwd?: string;
/** Cols/rows override (otherwise uses available space) */
cols?: number;
rows?: number;
/** Called when the PTY process exits */
onExit?: (code: number) => void;
/** Whether this terminal is focused and receives input */
focused?: boolean;
/** Called when the user presses Ctrl-o to release focus back to the parent */
onFocusRequest?: () => void;
};
export declare function Terminal({ command, env, cwd, cols: colsProp, rows: rowsProp, onExit, focused, onFocusRequest, }: Props): React.JSX.Element;
export {};
//# sourceMappingURL=Terminal.d.ts.map