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

Method PrintN

Kernel/src/videoconsole.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void VideoConsole::PrintN(const char* str, unsigned n, uint8_t r, uint8_t g, uint8_t b){
78 unsigned i = 0;
79 while (*str && i < n){
80 Print(*str++, r, g, b);
81 i++;
82 }
83}
84
85void VideoConsole::Scroll(){
86 memcpy(characterBuffer,(void*)(characterBuffer + widthInCharacters), widthInCharacters*(heightInCharacters-1)*sizeof(ConsoleCharacter));

Callers 1

WriteNFunction · 0.80

Calls 1

PrintFunction · 0.85

Tested by

no test coverage detected