Skip to content

Commit

Permalink
[vtbackend] Screen: Match speeds for DECSSCLS as defined by old DEC V…
Browse files Browse the repository at this point in the history
…T1xx and VT2xx terminals

Signed-off-by: Christian Parpart <christian@parpart.family>
  • Loading branch information
christianparpart committed Oct 3, 2023
1 parent 29c9469 commit d782937
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vtbackend/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,11 +847,13 @@ void Screen<Cell>::setScrollSpeed(int speed)
return;
}

// NB: Match speeds as defined by old DEC VT1xx and VT2xx terminals.
// See https://github.com/contour-terminal/contour/pull/1212/files#r1344674416
std::array<float, 9> constexpr NumberOfLinesPerSecond = { {
1, // 0
2, // 1
3, // 0
6, // 1
9, // 2 | defined by spec to be 18 lines per second
13, // 3
12, // 3
18, // 4 | defined by spec to be 18 lines per second
22, // 5
27, // 6
Expand Down

0 comments on commit d782937

Please sign in to comment.