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

API to manipulate cursor and characters

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: