mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-22 07:30:40 +00:00
50 lines
818 B
Objective-C
50 lines
818 B
Objective-C
//
|
|
// Emulator.h
|
|
// 2Term
|
|
//
|
|
// Created by Kelvin Sherlock on 7/7/2010.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#include <sys/ttycom.h>
|
|
|
|
@class NSEvent;
|
|
@class NSMenu;
|
|
|
|
#ifdef __cplusplus
|
|
class Screen;
|
|
class OutputChannel;
|
|
#else
|
|
#define Screen void
|
|
#define OutputChannel void
|
|
#endif
|
|
|
|
#import "iGeometry.h"
|
|
|
|
|
|
@interface EmulatorManager : NSObject
|
|
|
|
+(void)registerClass: (Class)klass;
|
|
+(NSMenu *)emulatorMenu;
|
|
+(id)emulatorForTag: (unsigned)tag;
|
|
|
|
@end
|
|
|
|
@protocol Emulator
|
|
|
|
-(void)processCharacter: (uint8_t)c screen: (Screen *)screen output: (OutputChannel *)output;
|
|
-(void)keyDown: (NSEvent *)event screen: (Screen *)screen output: (OutputChannel *)output;
|
|
|
|
-(void)reset;
|
|
|
|
+(NSString *)name;
|
|
-(NSString *)name;
|
|
|
|
-(const char *)termName;
|
|
|
|
-(BOOL)resizable;
|
|
|
|
-(struct winsize)defaultSize;
|
|
|
|
@end
|