Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How do I send escape sequences to control a terminal or other device?
How do I send escape sequences to control a terminal or other device?
✍: Guest
If you can figure out how to send characters to the device at all , 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 .
Some programmers prefer to parameterize the ESC code, like this:
#define ESC 033
fprintf(ofd, "%c[J", ESC);
2015-04-20, 1277👍, 0💬
Popular Posts:
Can we use the constructor, instead of init(), to initialize servlet? Yes , of course you can use th...
What Are the Parameter Modes Supported by PL/SQL? - Oracle DBA FAQ - Creating Your Own PL/SQL Proced...
Can you explain different software development life cycles -part II? Water Fall Model This is the ol...
Explain all parts of a deployment diagram? Package: It logically groups element of a UML model. Node...
Why does malloc(0) return valid memory address? What's the use? malloc(0) does not return a non-NULL...