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 can I get back to the interactive keyboard if stdin is redirected?
I'm trying to write a program like ``more.'' How can I get back to the interactive keyboard if stdin is redirected?
✍: Guest
There is no portable way of doing this. Under Unix, you can open the special file /dev/tty. Under MS-DOS, you can try opening the ``file'' CON, or use routines or BIOS calls such as getch which may go to the keyboard whether or not input is redirected.
2015-09-29, 1040👍, 0💬
Popular Posts:
Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?...
What does XmlValidatingReader class do? XmlTextReader class does not validate the contents of an XML...
What is the benefit of using an enum rather than a #define constant? The use of an enumeration const...
Can JavaScript steal text from your clipboard? It is true, text you last copied for pasting (copy &a...
How is normally a project management plan document organized ? PMP document forms the bible of a pro...