Code Monkey home page Code Monkey logo

termrect's Introduction

TermRect โ€ƒ Latest Version Docs Badge Travis Badge AppVeyor Badge

TermRect is a cross-platform representation of a rectangle of characters on a terminal.


About

TermRect is a lightweight representation of a styled 2d character grid. You can draw styled text into a TermRect, you can draw other TermRects into a TermRect. TermRect keeps track of the regions that have changed in each line, so you can render only what changed to the screen.

termrect's People

Contributors

ricochet1k avatar erichdongubler avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

Joe Gasewicz avatar  avatar

Watchers

 avatar

termrect's Issues

Add line-wrap tracking

When users resize the terminal, they expect lines that we're automatically wrapped to re-wrap to the new size. A simple flag on each line to track whether it was wrapped should suffice. Resize logic can come later

Resizing

Add a way to resize a termrect, re-wrapping as necessary (see #4)

Investigate use of Tendril

Tendril is a nice zero-copy string slice type from the servo project. Since some workloads of termrect will end up doing a lot of string slicing, copying strings around might end up being a little bit slower. Tendril might make things faster.

Ability to keep scrollback

There should be some kind of scrollable screenrect that can keep many more lines than what fits on the screen. It might not be able to wrap a screenrect. It actually might be better here to make the regular screenrect able to hold more lines and just limit with a setting of some kind.

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.