Switch branches/tags
Nothing to show
Commits on Apr 22, 2012
  1. Add AttrAltCharset

    kballard committed Apr 22, 2012
    Like AttrReverse and AttrBlink, this can be set for either fg or bg.
    Bump the Attribute size up to uint32 to make room for the extra
Commits on Apr 20, 2012
  1. Remove DrawStringf()

    kballard committed Apr 20, 2012
    No need for unnecessary API bloat. Users can just use
    DrawString(x, y, fg, bg, fmt.Sprintf(...)).
    Leave the argument order alone for DrawString(), instead of coercing it
    to match SetCell(), because this order makes it easier to use the
    above-mentioned construct.
Commits on Apr 16, 2012
  1. Fix ANSI color support

    kballard committed Apr 16, 2012
    I accidentally broke ANSI color support when adding xterm-256 color
Commits on Apr 15, 2012
Commits on Apr 14, 2012
Commits on Apr 12, 2012
  1. Add an explicit AttrBlink

    kballard committed Apr 12, 2012
    Passing AttrBold to the background causes blinking. This is undocumented
    and unexpected. Make a new attribute AttrBlink instead, and observe this
    attribute on either fg or bg (just like AttrReverse).
  2. Stop closing the readable /dev/tty on Close()

    kballard committed Apr 12, 2012
    On Darwin systems, a pending Read on the fd will block the Close(). We
    don't want this. We don't really need to close it at all though.
Commits on Mar 22, 2012
  1. Make ColorDefault == 0, add AttrReverse.

    nsf committed Mar 22, 2012
    AttrReverse makes sense mostly with ColorDefault, but since now ColorDefault is
    0, you can simply use AttrReverse as an only argument.
    	termbox.SetCell(x, y, ch, termbox.AttrReverse, termbox.AttrReverse)
    AttrReverse is a global attribute, it will be applied if foreground has it or
    background has it or both.
Commits on Mar 19, 2012
  1. Fix comments after API change.

    nsf committed Mar 19, 2012
  2. The last API change. At this moment I declare API as frozen.

    nsf committed Mar 19, 2012
    This commit remove few functions again and does few renamings. Frankly, I wanted
    to remove SetCell as well (since there is direct access to the back buffer), but
    I'm afraid the lack of SetCell will scare newbies.
    So, now we have 11 functions:
    Init() error
    Clear(fg, bg)
    SetCursor(x, y)
    SetCell(x, y, r, fg, bg)
    CellBuffer() []Cell
    PollEvent() Event
    Size() (int, int)
    SetInputMode(mode) InputMode
    Let it be frozen now.
  3. Few small fixes.

    nsf committed Mar 19, 2012
Commits on Mar 18, 2012
Commits on Mar 17, 2012
  1. Add LICENSE file.

    nsf committed Mar 17, 2012
  2. Update TODO list in README.

    nsf committed Mar 17, 2012
  3. Simply check for a new size every 'Clear' and 'Present' call.

    nsf committed Mar 17, 2012
    Instead of relying on sigwinch. Two syscalls per one screen update won't hurt.
Commits on Mar 16, 2012
  1. Add keyboard demo port.

    nsf committed Mar 16, 2012
  2. Major step towards being crossplatform, windows implementation.

    nsf committed Mar 16, 2012
    Still incomplete, but the first step of it.
Commits on Mar 15, 2012
  1. Update README as well.

    nsf committed Mar 15, 2012
  2. Remove the 'Blit' function, provide direct access to the back buffer …

    nsf committed Mar 15, 2012
    In C blit made sense. But Go is a safe language, and providing direct access to
    the back buffer here is fine. You can make your own blit function if you really
    need it.
  3. Remove SGR and CUP funcs. They match in all terminals.

    nsf committed Mar 15, 2012
    It also gives me a chance to remove Fprintf dependency. It seems faster without it.
  4. Add TODO note.

    nsf committed Mar 15, 2012
Commits on Mar 14, 2012
  1. Add docs in comments.

    nsf committed Mar 14, 2012
  2. Implement the rest of the API.

    nsf committed Mar 14, 2012
Commits on Mar 5, 2012
  1. Sync with main repo.

    nsf committed Mar 5, 2012