Sharpie
Search Results for

    Show / Hide Table of Contents
    • Sharpie
      • Canvas
      • Canvas.CheckGlyphStyle
      • Canvas.FillStyle
      • Canvas.GlyphSize
      • Canvas.GradientGlyphStyle
      • Canvas.LineStyle
      • Canvas.Orientation
      • Canvas.ShadeGlyphStyle
      • Canvas.TriangleGlyphStyle
      • CaretMode
      • ClearStrategy
      • ColorManager
      • ColorMixture
      • ColorMode
      • ControlCharacter
      • CursesException
      • CursesInitializationException
      • CursesOperationException
      • CursesSynchronizationException
      • DelegateEvent
      • Event
      • EventPump
      • EventType
      • Key
      • KeyEvent
      • KeySequenceResolver
      • ModifierKey
      • MouseActionEvent
      • MouseButton
      • MouseButtonState
      • MouseMoveEvent
      • Pad
      • ReplaceStrategy
      • ResolveEscapeSequenceFunc
      • Screen
      • SoftLabelKeyAlignment
      • SoftLabelKeyManager
      • SoftLabelKeyMode
      • StandardColor
      • StartEvent
      • StopEvent
      • Style
      • StyledText
      • SubPad
      • SubWindow
      • Surface
      • Terminal
      • TerminalOptions
      • TerminalResizeEvent
      • TerminalSurface
      • VideoAttribute
      • Window
    • Sharpie.Abstractions
      • IAsciiFont
      • IColorManager
      • ICursesBackend
      • ICursesBackend.ripoffline_callback
      • IDrawSurface
      • IDrawable
      • IEventPump
      • IInterval
      • IPad
      • IScreen
      • ISoftLabelKeyManager
      • ISubPad
      • ISubWindow
      • ISurface
      • ITerminal
      • ITerminalSurface
      • IWindow
    • Sharpie.Backend
      • ComplexChar
      • CursesBackend
      • CursesBackendFlavor
      • CursesBackendType
      • CursesCharEvent
      • CursesEvent
      • CursesKeyEvent
      • CursesMouseEvent
      • CursesMouseState
      • CursesResizeEvent
      • NCursesKeyCode
      • PdCursesKeyCode
    • Sharpie.Font
      • AsciiFont
      • AsciiFontLayout
      • DosCp866AsciiFont
      • FigletFont

    Interface IEventPump

    Defines the traits needed to implement EventPump.

    Namespace: Sharpie.Abstractions
    Assembly: sharpie.dll
    Syntax
    [PublicAPI]
    public interface IEventPump

    Properties

    Terminal

    The terminal this pump belongs to.

    Declaration
    ITerminal Terminal { get; }
    Property Value
    Type Description
    ITerminal

    Methods

    Listen()

    Gets an enumerable that is used to get enumerate events from Curses as they are generated.

    Declaration
    IEnumerable<Event> Listen()
    Returns
    Type Description
    IEnumerable<Event>

    The event listening enumerable.

    Remarks

    This operation is not thread safe.

    Exceptions
    Type Condition
    CursesSynchronizationException

    Thrown if this operation was expected to run on the main thread/context but wasn't.

    Listen(ISurface)

    Gets an enumerable that is used to get enumerate events from Curses as they are generated.

    Declaration
    IEnumerable<Event> Listen(ISurface surface)
    Parameters
    Type Name Description
    ISurface surface

    The surface to refresh during event processing.

    Returns
    Type Description
    IEnumerable<Event>

    The event listening enumerable.

    Remarks

    This operation is not thread safe.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if surface is null.

    CursesSynchronizationException

    Thrown if this operation was expected to run on the main thread/context but wasn't.

    Listen(ISurface, CancellationToken)

    Gets an enumerable that is used to get enumerate events from Curses as they are generated.

    Declaration
    IEnumerable<Event> Listen(ISurface surface, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ISurface surface

    The surface to refresh during event processing.

    CancellationToken cancellationToken

    Cancellation token used to interrupt the process.

    Returns
    Type Description
    IEnumerable<Event>

    The event listening enumerable.

    Remarks

    This operation is not thread safe.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if surface is null.

    CursesSynchronizationException

    Thrown if this operation was expected to run on the main thread/context but wasn't.

    Listen(CancellationToken)

    Gets an enumerable that is used to get enumerate events from Curses as they are generated.

    Declaration
    IEnumerable<Event> Listen(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Cancellation token used to interrupt the process.

    Returns
    Type Description
    IEnumerable<Event>

    The event listening enumerable.

    Remarks

    This operation is not thread safe.

    Exceptions
    Type Condition
    CursesSynchronizationException

    Thrown if this operation was expected to run on the main thread/context but wasn't.

    Use(ResolveEscapeSequenceFunc)

    Registers a key sequence resolver into the input pipeline.

    Declaration
    void Use(ResolveEscapeSequenceFunc resolver)
    Parameters
    Type Name Description
    ResolveEscapeSequenceFunc resolver

    The resolver to register.

    Remarks

    This operation is not thread safe.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown is resolver is null.

    CursesSynchronizationException

    Thrown if this operation was expected to run on the main thread/context but wasn't.

    Uses(ResolveEscapeSequenceFunc)

    Checks if the screen has a given key sequence resolver registered.

    Declaration
    bool Uses(ResolveEscapeSequenceFunc resolver)
    Parameters
    Type Name Description
    ResolveEscapeSequenceFunc resolver

    The resolver to check.

    Returns
    Type Description
    bool

    true if the resolver is registered; false otherwise.

    Remarks

    This operation is not thread safe.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown is resolver is null.

    CursesSynchronizationException

    Thrown if this operation was expected to run on the main thread/context but wasn't.

    In this article
    Back to top Generated by DocFX