Question 19.9

How do I send escape sequences to control a terminal or other device?


If you can figure out how to send characters to the device at all (see question 19.8), it's easy enough to send escape sequences. In ASCII, the ESC code is 033 (27 decimal), so code like

	fprintf(ofd, "\033[J");
sends the sequence ESC [ J .


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback