Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Feb 10, 2015
  1. Rename 'mouse_x/y' to 'x' and 'y'.

    This is because in future fields 'w' and 'h' will be declared as deprecated
    and 'x'/'y' will be used for RESIZE events as well. Long term plan.
  2. Fix keyboard demo.

Commits on Feb 9, 2015
  1. Jonas Pollok

    add mouse_input to demo

    jonasp authored
  2. Jonas Pollok

    bugfix in tb_select_input_mode

    jonasp authored
    1) don’t reset input_mouse when querying
    2) flush buffer to set input_mouse
  3. Jonas Pollok
Commits on Feb 1, 2015
  1. Adam
Commits on Jan 18, 2015
  1. Rewrite input reading code, so that it behaves well on more platforms.

    Fixes #46.
    Tested it on xterm linux, urxvt linux and mintty cygwin.
Commits on Jan 14, 2015
  1. Utkarsh Kukreti
Commits on Dec 13, 2014
  1. Bruce Mitchener

    Fix typos.

    waywardmonkeys authored
Commits on Dec 1, 2014
  1. Add 'tb_cell_buffer' function, for direct back buffer access.

    'tb_blit' is now deprecated, of course it will stay there for backward
  2. Fix typo and formatting.

    Typo was: 'fg' -> 'fgcol'.
Commits on Sep 15, 2014
  1. Update waf. Fixes #39.

Commits on Sep 14, 2014
  1. kropelka

    Workaround for changes in 3.4 CPython

    kropelka authored
    Build is broken in Python 3.4, because someone had an idea to enforce ISO C90 standard on all C source code. Without manually disabling them compilation breaks pretty easily on the beginning of utf8.c (`int i` in bad place...).
Commits on Sep 12, 2014
  1. Add a link to PHP wrapper.

Commits on Aug 19, 2014
  1. Replace tb_blit version with a better one.

    It doesn't change the behaviour, only extends it. Adds support for the
    following conditions:
     - source buffers that are larger than the target back buffer
     - blitting to positions that are partially outside of the back buffer
Commits on Aug 12, 2014
  1. Stephan Beal

    a) initialize termw and termh to -1.

    sgbeal authored
    b) make an API guaranty that the screen dimensions are "negative" (no
    need to say -1) if tb_init() has not been called or if tb_shutdown()
    has been called without a subsequent tb_init() (i.e., if we're in tb
    screen mode).
    c) in tb_shutdown(), set termw/termh back to -1.
Commits on Jul 23, 2014
Commits on Jul 22, 2014
  1. Make interface a bit more friendly towards C89.

    On the other hand stdint.h is still there, afaik it's from C99.
Commits on Feb 8, 2014
  1. Oops. Fix #33 truly now.

  2. Convert ints to uints before doing boundary checks. Fixes #33.

    That will make negative numbers very large and discard them as a result.
Commits on Feb 1, 2014
  1. Dillon Aumiller
Commits on Jan 29, 2014
  1. Fix formatting and a bug. Fixes #30.

    The bug was caused by a wrong assumption that individual write_sgr functions
    are there for optimization purposes. They are not. Their purpose is to make
    TB_DEFAULT work. Therefore TB_DEFAULT != lastfg/lastbg. In fact the send_attr
    puts SGR0 as soon as it detects deviation from lastfg or lastbg, which means
    the actual attributes are equal to terminal defaults from that point.
    The fix restores the previous logic for NORMAL mode and forces a complete
    update for other output modes. Again, complete doesn't mean less optimized, it
    was complete in most of the cases before as well. The update happens partially
    only if the TB_DEFAULT is involved.
Commits on Jan 28, 2014
  1. Realign defines with spaces instead of tabs.

    As a side note, it makes sense to convert the preprocessor defines to enums
    eventually. Better for parsing tools.
  2. Change recently added API names for consistency.

    Yes, having _MODE_ as part of the constant name is better, but in order to be
    consistent, I'm changing these names to ugly ones. I would rather add _MODE_
    part to the input mode constants, but it's a major API breakage, while
    breaking new API isn't as painful. At some point transition to termbox2 will
    happen, where I'll adjust API as I want, including better constant names. For
    now I choose consistency over prettiness.
  3. Update python bindings.

    Output mode functions/constants. Realign things using spaces instead of tabs.
  4. robem
  5. robem

    Add TB_OUTPUT_MODE_256 + documentation

    robem authored
    Additionally, make cosmetic change by transforming if() into
    switch() statements.
Something went wrong with that request. Please try again.