home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 2
/
Apprentice-Release2.iso
/
Source Code
/
C
/
Libraries
/
stdwin
/
Packs
/
vt
/
vtusesend.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-10-18
|
344 b
|
23 lines
|
[
TEXT/????
]
/* VT functions that send data back to the serial port. */
#include "vtimpl.h"
void
vtsendid(vt)
VT *vt;
{
vtsend(vt, "\033[?0;0;0c", -1);
}
void
vtsendpos(vt)
VT *vt;
{
char buf[256];
int row = vt->cur_row - vt->topterm + 1;
int col = vt->cur_col + 1;
CLIPMIN(row, 1);
sprintf(buf, "\033[%d;%dR", row, col);
vtsend(vt, buf, -1);
}