summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/io/IOStream.cpp
blob: 9d13251b4e5ba50b01874a48c0d7128d5786082f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <IO/IOStream.h>

void IOStream::print(const char* str) {
	if (term == 0) return;
	term->print(str);
}

void IOStream::printf(const char* fmt, ...) {
	if (term == 0) return;
	va_list ap;
	va_start(ap, fmt);
	term->vprintf(fmt, ap);
	va_end(ap);
}

String IOStream::readln() {
	if (term == 0) return "";
	return term->readln();
}