~sircmpwn/hare-vt

47879e76439a558824870ae3a0da06f7f2b0d653 — Drew DeVault 11 months ago 152b9e2
vt/xterm: read from term.in
1 files changed, 2 insertions(+), 2 deletions(-)

M vt/xterm.ha
M vt/xterm.ha => vt/xterm.ha +2 -2
@@ 145,7 145,7 @@ fn xterm_pollev(term: *term, block: bool) (void | event | io::EOF | error) = {
fn xterm_poll(term: *xterm, block: bool) (size | io::EOF | error) = {
	const polls = [
		poll::pollfd {
			fd = os::stdin_file,
			fd = term.in,
			events = poll::event::POLLIN | poll::event::POLLHUP,
			...
		},


@@ 156,7 156,7 @@ fn xterm_poll(term: *xterm, block: bool) (size | io::EOF | error) = {
		return 0z;
	};

	match (io::read(os::stdin_file, term.buf[term.end..])?) {
	match (io::read(term.in, term.buf[term.end..])?) {
	case io::EOF =>
		term.eof = true;
		return io::EOF;