sesaparcours
    Preparing search index...
    Index

    Constructors

    • Parameters

      Returns Shell

    Accessors

    • get domElement(): HTMLElement

      Getter for DOM element.

      Returns HTMLElement

    • get kernel(): KernelBase | undefined

      Kernel getter.

      Returns KernelBase | undefined

    • get kernelSafe(): KernelBase | null

      Returns KernelBase | null

    Methods

    • Mimic CPython’s REPL banner.

      Returns string

    • Recover the shell as it was at start.

      Parameters

      • withoutBanner: boolean = false

      Returns void

    • Print a string in the shell.

      Parameters

      • message: string

      Returns void

    • Print error in shell (in red).

      Parameters

      • message: string

      Returns any

    • Hide shell view.

      Returns void

    • Launch code in shell.

      Parameters

      • code: string
      • interactive: boolean = true

      Returns void

    • Pause the shell execution (usefull to wait for event or promise).

      Returns void

    • Reset the multiline input buffer.

      Returns void

    • Show shell view.

      Returns void

    • Show script in shell with content as dropdown (should improve readability).

      Parameters

      • code: string

      Returns void

    • Resume the shell execution (see pause).

      Returns void