Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-433

API to manipulate cursor and characters

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha1
    • None
    • None
    • None

      I need:
      1- Receive move cursor events.
      2- Move cursor to a given index.
      3- Handle multiline transparently.
      4- Clear the line from ANSI characters, keeping cursor position.

      This is applied to the use case commonly found in IDE of automatic colorisation of matching start/end (e.g.: {, [) characters.
      This will help wildly CLI users to create nested operations.

      I have prototyped this API based on the Buffer class.Buffer usage requires too much complexity.
      Should to come-up with a PR that exposes just what is needed.

              spederse@redhat.com Stale Pedersen
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: