Skip to content

Instantly share code, notes, and snippets.

@fu-sen fu-sen/text.h
Last active Jul 23, 2019

Embed
What would you like to do?
text sample | z88dk
#include <stdio.h>
void main() {
for (int y=1; y<=6; y++) {
for (int x=1; x<=24; x++) {
printf("%c[%u;%uH ", 27, y, x);
}
}
printf("%c[%u;%uH",27,2,2); // locate
printf("test");
printf("%c[%u;%uH",27,3,3); // locate
printf("test");
printf("%c[%u;%uH",27,4,4); // locate
printf("test");
while (!getk());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.