lp:textland
- Get this branch:
- bzr branch lp:textland
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at https://github.com/zyga/textland.git.
Last successful import was .
Recent revisions
- 15. By Zygmunt Krynicki
-
Merge pull request #12 from yphus/master
textland: flush input buffer after waiting on events
- 14. By Zygmunt Krynicki
-
Merge pull request #11 from kissiel/
drop-typeaheads textland: flush input buffer before waiting on events
- 13. By Zygmunt Krynicki
-
textland: maybe support resize on OSX
Signed-off-by: Zygmunt Krynicki <email address hidden>
- 12. By Zygmunt Krynicki
-
demos: add demo for color grid
Signed-off-by: Zygmunt Krynicki <email address hidden>
- 11. By Zygmunt Krynicki
-
demos: add demo for DisplayContext.
border( ) Signed-off-by: Zygmunt Krynicki <email address hidden>
- 10. By Zygmunt Krynicki
-
textland: fix curses on TERM=xterm-
256colors This patch (cherry picked from Sylvain's tree) stops using
curses.COLORS, which could be larger than 8, to initialize curses color
pairs. Instead we assume 8 colors as this allows us to use the
"standard" maximum of 64 color pairs.Signed-off-by: Zygmunt Krynicki <email address hidden>
- 9. By Zygmunt Krynicki
-
textland: clanup curses even if init fails
Signed-off-by: Zygmunt Krynicki <email address hidden>
- 8. By Zygmunt Krynicki
-
textland: allow color setup code to fail.
Currently this code fails for me, with TERM=xterm-256color so before it
gets fixed let's make it non-lethal.Signed-off-by: Zygmunt Krynicki <email address hidden>
- 7. By Zygmunt Krynicki
-
textland: attribute.py + colors.py => image.py
This large patch merges textland.attribute and textland.colors into
textland.image module. The rationale is that those are tightly coupled
concepts and they benefit from being in one module.Now all text attributes can be expressed as an unsigned 16 bit number.
The TextAttribute class provides simple attribute access to foreground
and background color as well as text style. It also offers
packing/unpacking facilities.All of the drawing methods simply use explicit packed attribute _or_ get
one from the DrawingContext.attributes. packed. The {get,set,
reset}_ attribute methods are gone. Same for
set_{fg,bf}_color and reset_colors. Responsibility for that is now
entirely upon properties, attributes and methods of TextAttributes.CursesDisplay now pre-computes a mapping table to translate from
TextLand to curses attribute bitmap. This is faster but might be further
improved if all brush manipulation painted the non-portable attributes
directly.The TextImage.
{get,put} () methods were optimized to multiply arguments
exactly once, for both text and attribute dataSigned-off-by: Zygmunt Krynicki <email address hidden>
- 6. By Zygmunt Krynicki
-
Merge pull request #9 from yphus/master
Initial color support: 8 ANSI colors + bright mode
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)