matthew-matvei/freeman

View on GitHub
src/renderer/objects/IIntegratedTerminal.ts

Summary

Maintainability
A
0 mins
Test Coverage
/** Describes an integrated, interactive terminal. */
interface IIntegratedTerminal {

    /** The shell used in this integrated terminal. */
    readonly shellName: string;

    /**
     * Opens the terminal in the container element.
     *
     * @param element the element in which the terminal is to open
     */
    openIn(element: HTMLDivElement): void;

    /** Fits the terminal to the container element. */
    fit(): void;

    /**
     * Sends a command to change to pathToDirectory.
     *
     * @param pathToDirectory - the path of the directory to change to
     */
    changeDirectory(pathToDirectory: string): void;
}

export default IIntegratedTerminal;