Ignore OSC 6
This commit is contained in:
parent
e33bf11012
commit
43851fc1c4
@ -411,6 +411,7 @@ dispatch_osc(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
|
||||
START_DISPATCH
|
||||
DISPATCH_OSC_WITH_CODE(set_color_table_color);
|
||||
END_DISPATCH
|
||||
case 6:
|
||||
case 7:
|
||||
START_DISPATCH
|
||||
DISPATCH_OSC_WITH_CODE(process_cwd_notification);
|
||||
|
||||
@ -2070,10 +2070,12 @@ set_color_table_color(Screen *self, unsigned int code, PyObject *color) {
|
||||
}
|
||||
|
||||
void
|
||||
process_cwd_notification(Screen *self, unsigned int code UNUSED, PyObject *cwd) {
|
||||
Py_CLEAR(self->last_reported_cwd);
|
||||
self->last_reported_cwd = cwd;
|
||||
Py_INCREF(self->last_reported_cwd);
|
||||
process_cwd_notification(Screen *self, unsigned int code, PyObject *cwd) {
|
||||
if (code == 7) {
|
||||
Py_CLEAR(self->last_reported_cwd);
|
||||
self->last_reported_cwd = cwd;
|
||||
Py_INCREF(self->last_reported_cwd);
|
||||
} // we ignore OSC 6 document reporting as we dont have a use for it
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user