mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-06-09 13:29:31 +00:00
emulators can specify their character generator.
This commit is contained in:
parent
b766854f80
commit
e7ebb7b573
|
@ -28,6 +28,7 @@ extern "C" unsigned EventCharacters(NSEvent *event, std::u32string &rv);
|
||||||
|
|
||||||
#import "iGeometry.h"
|
#import "iGeometry.h"
|
||||||
|
|
||||||
|
@class CharacterGenerator;
|
||||||
|
|
||||||
@interface EmulatorManager : NSObject
|
@interface EmulatorManager : NSObject
|
||||||
|
|
||||||
|
@ -63,5 +64,6 @@ extern "C" unsigned EventCharacters(NSEvent *event, std::u32string &rv);
|
||||||
@optional
|
@optional
|
||||||
|
|
||||||
-(void)initTerm: (struct termios *)term;
|
-(void)initTerm: (struct termios *)term;
|
||||||
|
-(CharacterGenerator *)characterGenerator;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -276,6 +276,13 @@
|
||||||
[_colorView setWantsLayer: YES];
|
[_colorView setWantsLayer: YES];
|
||||||
[_colorView setContentFilters: [self effectsFilter]];
|
[_colorView setContentFilters: [self effectsFilter]];
|
||||||
|
|
||||||
|
if ([_emulator respondsToSelector: @selector(characterGenerator)]) {
|
||||||
|
id tmp = [_emulator characterGenerator];
|
||||||
|
|
||||||
|
[(EmulatorWindow *)window setTitleCharacterGenerator:tmp];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
[self initPTY];
|
[self initPTY];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user