Skip to content
Snippets Groups Projects
Commit 8cc64761 authored by Gordon Child's avatar Gordon Child
Browse files

added a StealFocus escape code

This is able to be activated using
echo -e -n "\033]50;StealFocus\007"
parent e305c166
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2675,6 +2675,11 @@ static VT100TCC decode_string(unsigned char *datap,
}
} else if ([key isEqualToString:@"SetMark"]) {
[[SCREEN session] saveScrollPosition];
} else if ([key isEqualToString:@"StealFocus"]) {
[NSApp activateIgnoringOtherApps:YES];
[[[SCREEN display] window]orderFrontRegardless];
[[[SCREEN display] window]makeMainWindow];
[[[SCREEN display] window]makeKeyWindow];
}
} else if (token.type == XTERMCC_SET_PALETTE) {
NSString* argument = token.u.string;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment