quakeforge/ruamoko/qwaq/qwaq-screen.r
2020-03-01 18:25:02 +09:00

32 lines
378 B
R

#include "qwaq-curses.h"
#include "qwaq-screen.h"
@implementation Screen
+(Screen *) screen
{
return [[[self alloc] init] autorelease];
}
-init
{
if (!(self = [super init])) {
return nil;
}
window = stdscr;
rect = getwrect (window);
return self;
}
-add: obj
{
return self;
}
-setBackground: (int) ch
{
wbkgd (window, ch);
wrefresh (window);
return self;
}
@end