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

Method setCursorStyle

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

Source from the content-addressed store, hash-verified

3293 return this._coreService.isCursorHidden = false, this._onRequestSyncScrollBar.fire(), this._activeBuffer.scrollTop = 0, this._activeBuffer.scrollBottom = this._bufferService.rows - 1, this._curAttrData = l.DEFAULT_ATTR_DATA.clone(), this._coreService.reset(), this._charsetService.reset(), this._activeBuffer.savedX = 0, this._activeBuffer.savedY = this._activeBuffer.ybase, this._activeBuffer.savedCurAttrData.fg = this._curAttrData.fg, this._activeBuffer.savedCurAttrData.bg = this._curAttrData.bg, this._activeBuffer.savedCharset = this._charsetService.charset, this._coreService.decPrivateModes.origin = false, true;
3294 }
3295 setCursorStyle(e3) {
3296 const t3 = e3.params[0] || 1;
3297 switch (t3) {
3298 case 1:
3299 case 2:
3300 this._optionsService.options.cursorStyle = "block";
3301 break;
3302 case 3:
3303 case 4:
3304 this._optionsService.options.cursorStyle = "underline";
3305 break;
3306 case 5:
3307 case 6:
3308 this._optionsService.options.cursorStyle = "bar";
3309 }
3310 const i3 = t3 % 2 == 1;
3311 return this._optionsService.options.cursorBlink = i3, true;
3312 }
3313 setScrollRegion(e3) {
3314 const t3 = e3.params[0] || 1;
3315 let i3;

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected