{"record":{"id":"640cc509e7e8dd45","repo":"kovidgoyal/kitty","slug":"s-s-u-s","errorCode":null,"errorMessage":"%s %s %u %s","messagePattern":"%s %s %u %s","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"kitty/screen.c","lineNumber":2049,"sourceCode":"            break;\n        case 7727 << 5: log_error(\"Application escape mode is not supported, the extended keyboard protocol should be used instead\"); break;\n        case PENDING_MODE << 5:\n            if (!screen_pause_rendering(self, val, 0)) {\n                log_error(\"Pending mode change to already current mode (%d) requested. Either pending mode expired or there is an application bug.\", val);\n            }\n            break;\n        case INBAND_RESIZE_NOTIFICATION:\n            self->modes.mINBAND_RESIZE_NOTIFICATION = val;\n            if (val) CALLBACK(\"notify_child_of_resize\", NULL);\n            break;\n        case VISIBILITY_REPORTS:\n            self->modes.mVISIBILITY_REPORTS = val;\n            if (val) send_visibility_report(self);\n            break;\n        default:\n            private = mode >= 1 << 5;\n            if (private) mode >>= 5;\n            log_error(\"%s %s %u %s\", ERROR_PREFIX, \"Unsupported screen mode: \", mode, private ? \"(private)\" : \"\");\n    }\n#undef SIMPLE_MODE\n#undef MOUSE_MODE\n}\n\nvoid\nscreen_set_mode(Screen *self, unsigned int mode) {\n    set_mode_from_const(self, mode, true);\n}\n\nvoid\nscreen_decsace(Screen *self, unsigned int val) {\n    self->modes.mDECSACE = val == 2 ? true : false;\n}\n\nvoid\nscreen_reset_mode(Screen *self, unsigned int mode) {\n    set_mode_from_const(self, mode, false);","sourceCodeStart":2031,"sourceCodeEnd":2067,"githubUrl":"https://github.com/kovidgoyal/kitty/blob/6d5d0c440603ad9bdf6dcd599f73f6dde21acb44/kitty/screen.c#L2031-L2067","documentation":"The application set an unknown or unimplemented ANSI/DEC screen mode; kitty logs the mode number and whether it was private ('?'-prefixed) and ignores the command.","triggerScenarios":"Program emits CSI ? N h or CSI N h for a mode kitty does not implement (xterm-specific or vendor-private modes).","commonSituations":"Running niche or older TUI apps probing less common terminal modes; harmless.","solutions":["No action required - the mode is ignored","Look up the mode number in xterm docs to identify what the app wanted","Request support upstream or map the app to an alternative kitty supports"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"# probe mode support with DECRQM (CSI ? N $ p) and only set modes the terminal reports as supported","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Check mode support with DECRQM before setting uncommon modes"],"tags":["kitty","terminal-modes","unsupported"],"backgroundTag":"unsupported-terminal-mode","analyzedSha":"6d5d0c440603ad9bdf6dcd599f73f6dde21acb44","analyzedAt":"2026-08-27T14:20:20.142Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}