MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Scroll

Function Scroll

System/FTerm/main.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67char escBuf[escBufMax];
68
69void Scroll(){
70 while(curPos.y >= wSize.ws_row){
71 screenBuffer.erase(screenBuffer.begin());
72 screenBuffer.push_back(std::vector<TerminalChar>());
73
74 curPos.y--;
75 }
76
77 Lemon::Graphics::DrawRect({0, 0, renderSurface.width, renderSurface.height}, colours[state.bgColour], &renderSurface);
78}
79
80void Paint(){
81 int lnPos = 0;

Callers 3

DoAnsiCSIFunction · 0.70
PrintCharFunction · 0.70
PrintMethod · 0.50

Calls 2

DrawRectFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected