Giter Site home page Giter Site logo

ansikit's Introduction

ANSIKit

Build status

A Call for help.

So, I need your help. This current implementation works, but it's horrible. It needs cleaning up and making it less of a memory and cpu hog than it currently is.

Why

Log files are everywhere and if they are generated in a terminal (linux, unix, osx, otherwise) then they are more than likely to be ANSI formatted.

Displaying these text files in a app (iOS or OSX) is desirable, but first we need to extract them

The Problem

There are many ways in which a blob of text can be formatted. One of these is by using ANSI escape codes to change the format of the text. A typical use of these codes is in a terminal window whereby the output is progressively rendered to the screen.

This isn't as easy when it comes to displaying the final output from a log file that contains this formatting.

What I need help with is the following areas of the code.

  1. How can I reliably identify the range over which an escape code would apply
  2. How can I identify the escape codes amongst the string being parsed
  3. How can I avoid consuming all the cpu and ram on a device.

The current use of this framework is in an iOS app that displays the output from a saved log file. This log file is the result of running tests against the code and is ANSI formatted.

How to help out

  1. Fork the repo.
  2. Clone the repo.
  3. Create a branch.
  4. Write a solution including tests.
  5. Commit your code and push it up.
  6. Submit a pull request.

Thanks

Many thanks for your help and input. You are all awesome.

ansikit's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.