~sircmpwn/hare-vt

2bc23d26d2136bd6fbd0b766b0209315c177a54e — Mohammed Anas 8 months ago 788a8b0
Fix build
4 files changed, 5 insertions(+), 3 deletions(-)

M example.ha
M vt/draw.ha
M vt/event.ha
M vt/xterm.ha
M example.ha => example.ha +2 -0
@@ 93,6 93,8 @@ fn strmod(mods: modflag) str = {
		return "CTRL";
	case modflag::META =>
		return "META";
	case modflag::NONE =>
		return "";
	};
};


M vt/draw.ha => vt/draw.ha +1 -1
@@ 26,7 26,7 @@ export fn getcur(term: *term) ((uint, uint) | error) = {
// Prepares a styled value with a given pen, for use with [[fprint]].
export fn tag(
	pen: pen,
	args: (fmt::formattable | styled)...,
	args: (fmt::formattable | styled)...
) styled = styled {
	pen = pen,
	args = args,

M vt/event.ha => vt/event.ha +1 -1
@@ 7,7 7,7 @@ use unix::tty;
use unix::poll;

export type reader = struct {
	buf: [os::BUFSIZ]u8,
	buf: [os::BUFSZ]u8,
	end: size,
};


M vt/xterm.ha => vt/xterm.ha +1 -1
@@ 25,7 25,7 @@ type xterm = struct {
	termios: tty::termios,
	state: xterm_state,
	pen: pen,
	buf: [os::BUFSIZ]u8,
	buf: [os::BUFSZ]u8,
	end: size,
	eof: bool,
};