Skip to content

Selection will be cleared while playing #20

@JavaCS3

Description

@JavaCS3

Due to current framing strategy, xterm-player will refresh whole terminal if moving from a frame to next frame.

xterm-player/src/Player.ts

Lines 151 to 161 in 2462cdb

const frame = this._queue.frame(now)
if (this._lastframe === frame && now > this._lasttime) {
writeSync(this._term, frame.data(now, this._lasttime))
} else {
this._term.reset()
if (frame.prev) {
writeSync(this._term, frame.prev.snapshot() + frame.data(now))
} else {
writeSync(this._term, frame.data(now))
}
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions