xref: /original-bsd/old/lib2648/movecurs.c (revision 165be40a)
1*165be40aSdist /*
2*165be40aSdist  * Copyright (c) 1980 Regents of the University of California.
3*165be40aSdist  * All rights reserved.  The Berkeley software License Agreement
4*165be40aSdist  * specifies the terms and conditions for redistribution.
5*165be40aSdist  */
6*165be40aSdist 
7*165be40aSdist #ifndef lint
8*165be40aSdist static char sccsid[] = "@(#)movecurs.c	5.1 (Berkeley) 04/26/85";
9*165be40aSdist #endif not lint
10416677c4Sralph 
11416677c4Sralph #include "2648.h"
12416677c4Sralph 
movecurs(x,y)13416677c4Sralph movecurs(x, y)
14416677c4Sralph {
15416677c4Sralph 	char mes[20];
16416677c4Sralph 
17416677c4Sralph 	if (x==_curx && y==_cury)
18416677c4Sralph 		return;
19416677c4Sralph 	sprintf(mes, "%d,%do", x, y);
20416677c4Sralph 	escseq(ESCD);
21416677c4Sralph 	outstr(mes);
22416677c4Sralph 	escseq(NONE);
23416677c4Sralph 	_curx = x;
24416677c4Sralph 	_cury = y;
25416677c4Sralph }
26