Table of Contents

Namespace InteractiveReadLine.KeyBehaviors

Classes

BehaviorExtensionMethods

Provides extension methods that register key behaviors on a configuration. Each method returns the supplied configuration for chaining and replaces any existing binding for the same key.

CommonKeyBehaviors

These are common "behaviors" which are invoked by keys being pressed, and can be added to the handler either as the default behavior or to be invoked when a special key or character is pressed. They are given to the handler in the form of Action delegates which receive an IKeyBehaviorTarget, which they can operate on in order to affect some change on the line of text being written.

The behaviors provided in this static class are all simple ones, they can be used directly or they can be composed together or wrapped in other methods which allow access to external state, or any other use case that can be imagined.

Structs

KeyId

An identity for a key, is equatable so that it can be used in a dictionary

Interfaces

IKeyBehaviorTarget

Provides the unified target of key behaviors, exposing a standard amount of state which the behavior method can act upon