Terminal scrolling + C standard string.h memcpy implementation