Comments (4)
Are you using some fancy data-structure (i. e. not array-,matrix-like) for per-character diffs?
from pyte.
Right now I try this defaultdict:
self.buffer = defaultdict(lambda: defaultdict(lambda: Char(data=' ')))
The overhead of using dicts instead of lists seems to be really minimal for me, and it helps a lot for implementing the features that I need.
from pyte.
I think we can parametrize Screen
by buffer class (default to list
) and support any container as long as it's a MutableSequence
. Will this work for you?
from pyte.
Not sure yet, it's a little early to know whether that approach will work. I'll keep you posted.
from pyte.
Related Issues (20)
- Can't get contain '\r' input from Screen.buffer HOT 2
- python setup.py install HOT 1
- Idea: Produce intermediate representation from parsing HOT 6
- Make sure to send keypresses before the program stops
- How is the color encoded in screen? HOT 2
- Charator "➜" makes cursor moves only one step, but in most fonts it is 2 HOT 1
- move ansi escape parser to outta.parser module HOT 2
- Publish a release HOT 1
- Assigning to Screen.buffer to restore its state HOT 7
- Required minimum Python version is missing from `setup.py`
- tar-ball missing from pypi HOT 1
- please fix the typo: bfightmagenta -> brightmagenta
- [Question] Is pyte development still active? HOT 2
- [Question] How to implement a scrollbar? HOT 2
- 0.8.1 isn't released in the changelog on the website
- Color information loss with `nano`? HOT 3
- [Question] Get direct stream of characters/special-functions/cursor-movement?
- PyPI release doesn't contain py.typed marker. HOT 1
- No changes for 0.8.2 in CHANGES
- Dirty "regions" instead of dirty lines? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyte.