Permalink
Commits on Apr 22, 2012
  1. Add AttrAltCharset

    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
    attribute.
    committed Apr 22, 2012
Commits on Apr 20, 2012
  1. Remove DrawStringf()

    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.
    committed Apr 20, 2012
Commits on Apr 16, 2012
  1. Fix ANSI color support

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

    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).
    committed Apr 12, 2012
  2. Stop closing the readable /dev/tty on Close()

    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.
    committed Apr 12, 2012
Commits on Mar 22, 2012
  1. @nsf

    Make ColorDefault == 0, add AttrReverse.

    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.
    nsf committed Mar 22, 2012
Commits on Mar 19, 2012
  1. @nsf
  2. @nsf

    Fix comments after API change.

    nsf committed Mar 19, 2012
  3. @nsf

    The last API change. At this moment I declare API as frozen.

    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
    Close()
    Clear(fg, bg)
    Flush()
    SetCursor(x, y)
    HideCursor()
    SetCell(x, y, r, fg, bg)
    CellBuffer() []Cell
    PollEvent() Event
    Size() (int, int)
    SetInputMode(mode) InputMode
    
    Let it be frozen now.
    nsf committed Mar 19, 2012
  4. @nsf
  5. @nsf

    Few small fixes.

    nsf committed Mar 19, 2012
Commits on Mar 18, 2012
  1. @nsf
  2. @nsf
Commits on Mar 17, 2012
  1. @nsf
  2. @nsf

    Don't build terminfo.go on windows.

    nsf committed Mar 17, 2012
  3. @nsf

    Add LICENSE file.

    nsf committed Mar 17, 2012
  4. @nsf

    Update TODO list in README.

    nsf committed Mar 17, 2012
  5. @nsf

    Simply check for a new size every 'Clear' and 'Present' call.

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

    Add keyboard demo port.

    nsf committed Mar 16, 2012
  2. @nsf

    Major step towards being crossplatform, windows implementation.

    Still incomplete, but the first step of it.
    nsf committed Mar 16, 2012
Commits on Mar 15, 2012
  1. @nsf

    Update README as well.

    nsf committed Mar 15, 2012
  2. @nsf
  3. @nsf

    Remove the 'Blit' function, provide direct access to the back buffer …

    …instead.
    
    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.
    nsf committed Mar 15, 2012
  4. @nsf

    Remove SGR and CUP funcs. They match in all terminals.

    It also gives me a chance to remove Fprintf dependency. It seems faster without it.
    nsf committed Mar 15, 2012
  5. @nsf

    Add TODO note.

    nsf committed Mar 15, 2012
  6. @nsf
Commits on Mar 14, 2012
  1. @nsf

    Add docs in comments.

    nsf committed Mar 14, 2012
  2. @nsf

    Implement the rest of the API.

    nsf committed Mar 14, 2012
  3. @nsf
  4. @nsf
Commits on Mar 5, 2012
  1. @nsf

    Sync with main repo.

    nsf committed Mar 5, 2012