ghostty/conformance/ansi_ri_top.zig
Mitchell Hashimoto afb8bb6d60 Add conformance apps
2022-05-09 17:28:14 -07:00

11 lines
338 B
Zig

//! Reverse Index (RI) - ESC M at the top of the screen.
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("\x1B[H", .{}); // move to top-left
try stdout.print("\x1B[J", .{}); // clear screen
try stdout.print("\x1BM", .{});
try stdout.print("D\n", .{});
}