MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setModePrivate

Method setModePrivate

src/server/web/public/terminal.js:3086–3155  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

3084 return true;
3085 }
3086 setModePrivate(e3) {
3087 for (let t3 = 0; t3 < e3.length; t3++) switch (e3.params[t3]) {
3088 case 1:
3089 this._coreService.decPrivateModes.applicationCursorKeys = true;
3090 break;
3091 case 2:
3092 this._charsetService.setgCharset(0, o.DEFAULT_CHARSET), this._charsetService.setgCharset(1, o.DEFAULT_CHARSET), this._charsetService.setgCharset(2, o.DEFAULT_CHARSET), this._charsetService.setgCharset(3, o.DEFAULT_CHARSET);
3093 break;
3094 case 3:
3095 this._optionsService.rawOptions.windowOptions.setWinLines && (this._bufferService.resize(132, this._bufferService.rows), this._onRequestReset.fire());
3096 break;
3097 case 6:
3098 this._coreService.decPrivateModes.origin = true, this._setCursor(0, 0);
3099 break;
3100 case 7:
3101 this._coreService.decPrivateModes.wraparound = true;
3102 break;
3103 case 12:
3104 this._optionsService.options.cursorBlink = true;
3105 break;
3106 case 45:
3107 this._coreService.decPrivateModes.reverseWraparound = true;
3108 break;
3109 case 66:
3110 this._logService.debug("Serial port requested application keypad."), this._coreService.decPrivateModes.applicationKeypad = true, this._onRequestSyncScrollBar.fire();
3111 break;
3112 case 9:
3113 this._coreMouseService.activeProtocol = "X10";
3114 break;
3115 case 1e3:
3116 this._coreMouseService.activeProtocol = "VT200";
3117 break;
3118 case 1002:
3119 this._coreMouseService.activeProtocol = "DRAG";
3120 break;
3121 case 1003:
3122 this._coreMouseService.activeProtocol = "ANY";
3123 break;
3124 case 1004:
3125 this._coreService.decPrivateModes.sendFocus = true, this._onRequestSendFocus.fire();
3126 break;
3127 case 1005:
3128 this._logService.debug("DECSET 1005 not supported (see #2507)");
3129 break;
3130 case 1006:
3131 this._coreMouseService.activeEncoding = "SGR";
3132 break;
3133 case 1015:
3134 this._logService.debug("DECSET 1015 not supported (see #2507)");
3135 break;
3136 case 1016:
3137 this._coreMouseService.activeEncoding = "SGR_PIXELS";
3138 break;
3139 case 25:
3140 this._coreService.isCursorHidden = false;
3141 break;
3142 case 1048:
3143 this.saveCursor();

Callers 1

constructorMethod · 0.95

Calls 8

_setCursorMethod · 0.95
saveCursorMethod · 0.95
_eraseAttrDataMethod · 0.95
setgCharsetMethod · 0.80
fireMethod · 0.80
activateAltBufferMethod · 0.80
resizeMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected