没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > termbox |
termbox
|
1 | 0 | 175 |
贡献者 | 讨论 | 代码提交 |
Termbox library is a simple and clean ncurses alternative. Of course everything has it's own price. In this case it's portability and stability.
Currently all sources are hosted on github:
GitHub (git://github.com/nsf/termbox.git)
Also I have uploaded a snapshot from git. And I will continue to do it from time to time.
Screenshot - demo program 'keyboard':
The interface only consists of 12(!) functions.
tb_init() // initialization
tb_shutdown() // shutdown
tb_width() // width of the terminal screen
tb_height() // height of the terminal screen
tb_clear() // clear buffer
tb_present() // sync internal buffer with terminal
tb_put_cell()
tb_change_cell()
tb_blit() // drawing functions
tb_select_input_mode() // change input mode
tb_peek_event() // peek a keyboard event
tb_poll_event() // wait for a keyboard eventIt's extremly easy to use and fast to learn. I bet you can fully understand principles of this library in a day.