// // MobileTerminal.h // Terminal #import #import "Constants.h" #import "Log.h" @class PTYTextView; @class ShellKeyboard; @class SubProcess; @class VT100Screen; @class VT100Terminal; @class GestureView; @class PieView; @class MainViewController; @class PreferencesController; @class MobileTerminal; @class Settings; @class Menu; @interface Terminal : NSObject { int identifier; SubProcess *process; VT100Screen *screen; VT100Terminal *terminal; } @property(nonatomic, readonly) int identifier; @property(nonatomic, readonly) SubProcess *process; @property(nonatomic, readonly) VT100Screen *screen; @property(nonatomic, readonly) VT100Terminal *terminal; - (id)initWithIdentifier:(int)identifier delegate:(id)delegate; @end //_______________________________________________________________________________ //_______________________________________________________________________________ @interface MobileTerminal : UIApplication { UIWindow *window; MainViewController *mainController; PreferencesController *preferencesController; NSMutableArray *processes; NSMutableArray *screens; NSMutableArray *terminals; Settings *settings; Menu *menu; int numTerminals; int activeTerminalIndex; BOOL controlKeyMode; BOOL landscape; } @property BOOL landscape; @property(readonly) NSArray *scrollers; @property BOOL controlKeyMode; @property(readonly) Menu *menu; @property(readonly) int numTerminals; @property(nonatomic, readonly, getter=indexOfActiveTerminal) int activeTerminalIndex; @property(nonatomic, readonly) Terminal *activeTerminal; @property(nonatomic, readonly) UIView *activeView; + (MobileTerminal *)application; + (Menu *)menu; - (void)applicationDidFinishLaunching:(NSNotification *)aNotification; - (void)applicationSuspend:(GSEventRef)event; - (void)handleStreamOutput:(const char *)c length:(unsigned int)len identifier:(int)tid; - (void)handleKeyPress:(unichar)c; - (void)togglePreferences; // StatusBar methods - (void)setStatusBarHidden:(BOOL)hidden duration:(double)duration; - (void)setStatusIconVisible:(BOOL)visible forTerminal:(int)index; // Invoked by MenuView - (void)handleInputFromMenu:(NSString *)input; // Invoked by SwitcherMenu - (void)setActiveTerminal:(int)terminal; - (void)setActiveTerminal:(int)terminal direction:(int)direction; - (void)prevTerminal; - (void)nextTerminal; - (void)createTerminalWithIdentifier:(int)identifier; @end /* vim: set syntax=objc sw=4 ts=4 sts=4 expandtab textwidth=80 ff=unix: */