@jupyterlite/terminal 0.1.5 → 0.2.0-a0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/tokens.ts DELETED
@@ -1,66 +0,0 @@
1
- // Copyright (c) Jupyter Development Team.
2
- // Distributed under the terms of the Modified BSD License.
3
-
4
- import { TerminalAPI } from '@jupyterlab/services';
5
-
6
- import { Token } from '@lumino/coreutils';
7
- import { IObservableDisposable } from '@lumino/disposable';
8
-
9
- /**
10
- * The token for the Terminals service.
11
- */
12
- export const ITerminalManager = new Token<ITerminalManager>(
13
- '@jupyterlite/terminal:ITerminalManager'
14
- );
15
-
16
- /**
17
- * An interface for the TerminalManager service.
18
- */
19
- export interface ITerminalManager {
20
- /**
21
- * Return whether the named terminal exists.
22
- */
23
- has(name: string): boolean;
24
-
25
- /**
26
- * List the running terminals.
27
- */
28
- listRunning: () => Promise<TerminalAPI.IModel[]>;
29
-
30
- /**
31
- * Shutdown a terminal by name.
32
- */
33
- shutdownTerminal: (name: string) => Promise<void>;
34
-
35
- /**
36
- * Start a new kernel.
37
- */
38
- startNew: () => Promise<TerminalAPI.IModel>;
39
- }
40
-
41
- /**
42
- * An interface for a server-side terminal running in the browser.
43
- */
44
- export interface ITerminal extends IObservableDisposable {
45
- /**
46
- * The name of the server-side terminal.
47
- */
48
- readonly name: string;
49
- }
50
-
51
- /**
52
- * A namespace for ITerminal statics.
53
- */
54
- export namespace ITerminal {
55
- /**
56
- * The instantiation options for an ITerminal.
57
- */
58
- export interface IOptions {
59
- /**
60
- * The name of the terminal.
61
- */
62
- name: string;
63
-
64
- baseUrl: string;
65
- }
66
- }