mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
conformance for insert lines with scroll region
This commit is contained in:
17
conformance/csi_il.zig
Normal file
17
conformance/csi_il.zig
Normal file
@ -0,0 +1,17 @@
|
||||
//! Insert Line (IL) - Esc [ L
|
||||
const std = @import("std");
|
||||
|
||||
pub fn main() !void {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
try stdout.print("\x1B[2J", .{}); // clear screen
|
||||
try stdout.print("\x1B[1;1H", .{}); // set cursor position
|
||||
try stdout.print("A\nB\nC\nD\nE", .{});
|
||||
try stdout.print("\x1B[1;2r", .{}); // set scroll region
|
||||
try stdout.print("\x1B[1;1H", .{}); // set cursor position
|
||||
try stdout.print("\x1B[1L", .{}); // insert lines
|
||||
try stdout.print("X", .{});
|
||||
try stdout.print("\x1B[7;1H", .{}); // set cursor position
|
||||
|
||||
// const stdin = std.io.getStdIn().reader();
|
||||
// _ = try stdin.readByte();
|
||||
}
|
Reference in New Issue
Block a user