summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-14 16:59:02 +0000
committerPixel <Pixel>2001-11-14 16:59:02 +0000
commitaa92df3c58daefb994da555fb45f2e3ee55f38d5 (patch)
tree6105f0ced059af0fceb10a29f318d0c13c83d051 /lib/Input.cc
parent9235fbc2a736da2c68eb2dc0a3c1007b4a202d5e (diff)
Latest and various changes
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index 9ce7ca0..ad8991a 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -30,3 +30,18 @@ String Input::GetName() {
return n;
}
+Stdin_t::Stdin_t() : Handle(dup(0)) { }
+
+bool Stdin_t::CanWrite() {
+ return 0;
+}
+
+bool Stdin_t::CanRead() {
+ return 1;
+}
+
+String Stdin_t::GetName() {
+ return "Stdin";
+}
+
+Stdin_t Stdin;