nimterm/backend
This page is generated from the module’s exported API and ## documentation comments.
Platform-neutral terminal backend contract.
TerminalCapabilities
Section titled “TerminalCapabilities”TerminalCapabilities = object mouse*: bool bracketedPaste*: bool focusEvents*: bool modifyOtherKeys*: bool kittyKeyboard*: boolTerminalBackend
Section titled “TerminalBackend”TerminalBackend = ref object of RootObjProcedures
Section titled “Procedures”defaultCapabilities
Section titled “defaultCapabilities”proc defaultCapabilities(): TerminalCapabilities {.raises: [], tags: [], forbids: [].}Returns: TerminalCapabilities.
Methods
Section titled “Methods”method init(backend: TerminalBackend) {.base, raises: [], tags: [], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |
shutdown
Section titled “shutdown”method shutdown(backend: TerminalBackend) {.base, raises: [], tags: [], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |
method size(backend: TerminalBackend): Size {.base, raises: [], tags: [], forbids: [].}Returns: Size.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |
readEvent
Section titled “readEvent”method readEvent(backend: TerminalBackend; timeoutMs: int): UiEvent {.base, raises: [], tags: [], forbids: [].}Returns: UiEvent.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |
|
timeoutMs |
int |
method wake(backend: TerminalBackend) {.base, raises: [], tags: [], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |
present
Section titled “present”method present(backend: TerminalBackend; frame: Canvas) {.base, raises: [], tags: [], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |
|
frame |
Canvas |
resetPresentation
Section titled “resetPresentation”method resetPresentation(backend: TerminalBackend) {.base, raises: [], tags: [], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
backend |
TerminalBackend |