Class CursesBackend
Provides functionality for obtaining ICursesBackend instances.
Inherited Members
Namespace: Sharpie.Backend
Assembly: sharpie.dll
Syntax
[PublicAPI]
public static class CursesBackend
Methods
Load(CursesBackendFlavor, params CursesBackendFlavor[])
Looks up and loads the Curses backend based on the specified flavor.
Declaration
public static ICursesBackend Load(CursesBackendFlavor flavor = CursesBackendFlavor.Any, params CursesBackendFlavor[] otherFlavors)
Parameters
| Type | Name | Description |
|---|---|---|
| CursesBackendFlavor | flavor | The desired Curses flavor. |
| CursesBackendFlavor[] | otherFlavors | Additional desired Curses flavors. |
Returns
| Type | Description |
|---|---|
| ICursesBackend | The loaded Curses backend. |
Exceptions
| Type | Condition |
|---|---|
| CursesInitializationException | Thrown if no suitable provider was found. |
Load(CursesBackendType, string, params string[])
Loads the Curses backend based on the specified type.
Declaration
public static ICursesBackend Load(CursesBackendType type, string path, params string[] otherPaths)
Parameters
| Type | Name | Description |
|---|---|---|
| CursesBackendType | type | The backend type. |
| string | path | The path for the library. |
| string[] | otherPaths | The list of additional paths for the library. |
Returns
| Type | Description |
|---|---|
| ICursesBackend | The loaded Curses backend. |
Exceptions
| Type | Condition |
|---|---|
| CursesInitializationException | Thrown if no suitable provider was found. |