Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active December 4, 2019 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fu-sen/e039c15e4cad69778cb7cdd2cbd9ae11 to your computer and use it in GitHub Desktop.
Save fu-sen/e039c15e4cad69778cb7cdd2cbd9ae11 to your computer and use it in GitHub Desktop.
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