Shorter version of gotoxy

Submitted by:Tim Kelly

Date added:11 January, 2015

Category:C

There is a shorter version of previous snippet for *nix systems.

Tags: gotoxy , nix systems

Code Snippet:

/ There is a shorter version of previous snippet for *nix systems.

#include <stdio.h>

void gotoxy(int x, int y)
{
printf("\033%dd\033%dG", y, x);
}
 
 

Comments