Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Screen.C

00001 /* $Id: Screen.C,v 1.1 2001/01/01 00:25:56 rpav Exp $
00002  *
00003  * SFW - Studio FrameWork
00004  * Copyright (C) 2000  Ryan Pavlik
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019  *
00020  */
00021 
00022 /*
00023  * Screen.C
00024  *
00025  * Screen class implementation.
00026  *
00027  */ 
00028 
00029 #include <SFW/Curses/Curses.H>
00030 #include <ncurses.h>
00031 #include <SFW/Curses/CursesUndefs.H>
00032 
00033 TYPE_INIT(SFW::Curses::Screen);
00034 
00035 using namespace SFW;
00036 using namespace SFW::Curses;
00037 
00038 void Screen::init() {
00039     initscr();
00040 }
00041 
00042 void Screen::fini() {
00043     endwin();
00044 }
00045 
00046 bool Screen::isfini() {
00047     return (isendwin() == TRUE);
00048 }
00049 
00050 bool Screen::doupdate() {
00051     return (::doupdate() == OK);
00052 }
00053 
00054 void Screen::refresh() {
00055     wrefresh(stdscr);
00056 }
00057 
00058 void Screen::nl(bool _b) {
00059     if(_b)
00060         nl();
00061     else
00062         nonl();
00063 }
00064 
00065 bool Screen::setCursor(int _vis) {
00066     return (curs_set(_vis) != ERR);
00067 }

Generated at Tue Jan 2 15:38:34 2001 for SFW by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000