Skip to content
Snippets Groups Projects
Commit 76d21a82 authored by gnachman's avatar gnachman
Browse files

Merge pull request #4 from shabble/dev

Pull shabble's change that adds a "request attention" escape code to bounce the dock icon.
parents 90945223 e8ce0f7d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -130,6 +130,8 @@
#define XTERMCC_SET_PALETTE 111
#define XTERMCC_SET_KVP 112
 
// Some ansi stuff
#define ANSICSI_CHA 3000 // Cursor Horizontal Absolute
#define ANSICSI_VPA 3001 // Vert Position Absolute
Loading
Loading
@@ -296,6 +298,7 @@ typedef enum {
int CHARSET; // G0...G3
BOOL XON; // YES=XON, NO=XOFF
BOOL numLock; // YES=ON, NO=OFF, default=YES;
BOOL shouldBounceDockIcon;
MouseMode MOUSE_MODE;
MouseFormat MOUSE_FORMAT;
 
Loading
Loading
Loading
Loading
@@ -2621,6 +2621,12 @@ static VT100TCC decode_string(unsigned char *datap,
if (shape >= 0 && shape < sizeof(shapeMap)/sizeof(int)) {
[[[SCREEN session] TEXTVIEW] setCursorType:shapeMap[shape]];
}
} else if ([key isEqualToString:@"RequestAttention"]) {
if ([value boolValue]) {
shouldBounceDockIcon = [NSApp requestUserAttention:NSCriticalRequest];
} else {
[NSApp cancelUserAttentionRequest:shouldBounceDockIcon];
}
}
}
} else if (token.type == XTERMCC_SET_PALETTE) {
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