mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Ignore OSC 6
This commit is contained in:
parent
e33bf11012
commit
43851fc1c4
2 changed files with 7 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue