mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-11 00:29:22 +00:00
rtorrent/display: Initial ncurses canvas implementation.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@234 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "canvas.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
namespace display {
|
||||
|
||||
void
|
||||
Canvas::init() {
|
||||
initscr();
|
||||
cbreak();
|
||||
noecho();
|
||||
nodelay(stdscr, TRUE);
|
||||
keypad(stdscr, TRUE);
|
||||
curs_set(0);
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::cleanup() {
|
||||
endwin();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user