summaryrefslogtreecommitdiff
path: root/ycurses/src/curses/curses.cpp
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-15 11:49:02 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-15 11:49:02 +0100
commit3a96ab7e91145b367d05e98533b5f426f762f83f (patch)
treeac7758a706066e14b785ab6e5f7071a54baa856b /ycurses/src/curses/curses.cpp
parent332d7b2107833018b3ef67b64ffe121bff1ef4fb (diff)
add packagespackages
Diffstat (limited to 'ycurses/src/curses/curses.cpp')
-rw-r--r--ycurses/src/curses/curses.cpp86
1 files changed, 0 insertions, 86 deletions
diff --git a/ycurses/src/curses/curses.cpp b/ycurses/src/curses/curses.cpp
deleted file mode 100644
index 3605e59..0000000
--- a/ycurses/src/curses/curses.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-#ifndef CURSES_CPP
-#define CURSES_CPP
-
-#include "curses.h"
-
-int curses::i_self_counter = 0;
-
-curses::curses()
-{
- if ( ++i_self_counter == 1 )
- {
- initscr();
- raw();
- keypad(stdscr, TRUE);
- noecho();
- }
-}
-
-curses::~curses()
-{
- if ( --i_self_counter == 0 )
- {
-/*
- Factory<attributes>::destroyAll();
- Factory<color>::destroyAll();
- Factory<window>::destroyAll();
- Factory<menu>::destroyAll();
- Factory<pwindow>::destroyAll();
- */
- clear();
- endwin();
- }
-}
-
-void
-curses::finish()
-{
-}
-
-int
-curses::get_char()
-{
- return getch();
-}
-
-string
-curses::get_string()
-{
- char c[1024];
- getstr(c);
- return string(c);
-}
-
-void
-curses::pause()
-{
- getch();
-}
-
-void
-curses::disable()
-{
- refresh();
- def_prog_mode();
- endwin();
-}
-
-void
-curses::enable()
-{
- reset_prog_mode();
- refresh();
-}
-
-void
-curses::clear()
-{
- coordinate coord(LINES, COLS);
- for ( int i = 0; i < coord.y; ++i )
- for ( int j = 0; j < coord.x; ++j )
- mvaddch(i, j, ' ');
-
- refresh();
-}
-
-#endif