mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-03 04:34:21 -05:00
Add a number of simple ref-tests
Also adds a feature `err-println` for enabling `err_println!` printing.
This commit is contained in:
parent
66dbd29cd1
commit
0dfba30181
13 changed files with 271 additions and 16 deletions
|
@ -9,7 +9,7 @@ os:
|
|||
|
||||
rust:
|
||||
# Whole bunch of stuff needs nightly for now
|
||||
- nightly-2016-07-11
|
||||
- nightly-2016-11-06
|
||||
|
||||
script:
|
||||
- cargo test
|
||||
- cargo test --no-default-features
|
||||
|
|
|
@ -27,9 +27,10 @@ serde_json = "*"
|
|||
copypasta = { path = "./copypasta" }
|
||||
|
||||
[features]
|
||||
default = []
|
||||
default = ["err-println"]
|
||||
# Enabling this feature makes shaders automatically reload when changed
|
||||
live-shader-reload = []
|
||||
err-println = []
|
||||
|
||||
[build-dependencies]
|
||||
gl_generator = "0.5"
|
||||
|
|
|
@ -23,16 +23,10 @@ macro_rules! die {
|
|||
#[macro_export]
|
||||
macro_rules! err_println {
|
||||
($($arg:tt)*) => {{
|
||||
use std::io::Write;
|
||||
(writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr");
|
||||
}}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! err_println {
|
||||
($($arg:tt)*) => {{
|
||||
use std::io::Write;
|
||||
(writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr");
|
||||
if cfg!(feature = "err-println") {
|
||||
use std::io::Write;
|
||||
(writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr");
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
|
|
11
tests/ref.rs
11
tests/ref.rs
|
@ -69,10 +69,15 @@ mod reference {
|
|||
($( $name:ident ),*) => {
|
||||
$(
|
||||
ref_test! { $name }
|
||||
),*
|
||||
}
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
// Ref tests!
|
||||
ref_test! { ll }
|
||||
ref_test! {
|
||||
ll,
|
||||
vim_simple_edit,
|
||||
tmux_htop,
|
||||
tmux_git_log
|
||||
}
|
||||
}
|
||||
|
|
124
tests/ref/tmux_git_log/alacritty.recording
Normal file
124
tests/ref/tmux_git_log/alacritty.recording
Normal file
|
@ -0,0 +1,124 @@
|
|||
[1m[7m%[27m[1m[0m
[0m[27m[24m[Jjwilm@kurast.local [01;32m➜ [01;32m [36m~/code/alacritty [00m [K[?1h=[?2004h[35mg[39m[1m[31mg[1m[31mi[0m[39m[0m[35mg[0m[35mi[35mt[39m log[?1l>[?2004l
|
||||
[?1049h[?1h=
[33mcommit bdd21810882dbba8485ac44c871482dfc6ea9b93[m[m
|
||||
Author: Joe Wilm <joe@jwilm.com>[m
|
||||
Date: Sat Nov 19 16:16:20 2016 -0800[m
|
||||
[m
|
||||
Add support for recording/running ref tests[m
|
||||
[m
|
||||
Ref tests use a recording of the terminal protocol and a serialization[m
|
||||
of the grid state to check that the parsing and action handling systems[m
|
||||
produce the correct result. Ref tests may be recorded by running[m
|
||||
alacritty with `--ref-test` and closing the terminal by using the window[m
|
||||
"X" button. At that point, the recording is fully written to disk, and a[m
|
||||
serialization of important state is recorded. Those files should be[m
|
||||
moved to an appropriate folder in the `tests/ref/` tree, and the[m
|
||||
`ref_test!` macro invocation should be updated accordingly.[m
|
||||
[m
|
||||
A couple of changes were necessary to make this work:[m
|
||||
[m
|
||||
* Ref tests shouldn't create a pty; the pty was refactored out of the[m
|
||||
`Term` type.[m
|
||||
* Repeatable lines/cols were needed; on startup, the terminal is resized[m
|
||||
* by default to 80x24 though that may be changed by passing[m
|
||||
`--dimensions w h`.[m
|
||||
* Calculating window size based on desired rows/columns and font metrics[m
|
||||
:[K
[K required making load_font callable multiple times. I think this still[m
|
||||
:[K
[K needs to be done for linux.[m
|
||||
:[K
[K * Refactor types into library crate so they may be imported in an[m
|
||||
:[K
[K integration test.[m
|
||||
:[K
[K * A whole bunch of types needed symmetric serialization and[m
|
||||
:[K
[K deserialization. Mostly this was just adding derives, but the custom[m
|
||||
:[K
[K deserialization of Rgb had to change to a deserialize_with function.[m
|
||||
:[K
[K [m
|
||||
:[K
[K This initially adds one ref test as a sanity check, and more will be[m
|
||||
:[K
[K added in subsequent commits. This initial ref tests just starts the[m
|
||||
:[K
[K terminal and runs `ll`.[m
|
||||
:[K
[K[m
|
||||
:[K
[K[33mcommit d97996e19de6856c23c51d05ec10f10db41e309d[m[m
|
||||
:[K
[KAuthor: Joe Wilm <joe@jwilm.com>[m
|
||||
:[K
[K[?1l>[?1049l[1m[7m%[27m[1m[0m
[0m[27m[24m[Jjwilm@kurast.local [01;32m➜ [01;32m [36m~/code/alacritty [00m [K[?1h=[?2004h[36mt[39m[36mt[36mm[39m[36mt[36mm[36mu[39m[35mt[35mm[35mu[35mx[39m[?1l>[?2004l
|
||||
[?1049h(B[m[?1l>[H[2J[?12l[?25h[?1000l[?1002l[?1006l[?1005l]112[?25l[1;1H[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[30m[43m1:reattach-to-user-namespace*[44m (B[m[24;1H[1;24r[H[?12l[?25h[1;23rg[1;24r[H[C[?25l[24;1H[30m[43m1:zsh*[44m (B[m[1;2H[?12l[?25h[1;23r[H[C[1m[7m%(B[m
[1;24r[H
|
||||
[1;23r[H
|
||||
[K
|
||||
[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[1B[K[2djwilm@kurast.local [32m[1m➜ [36m~/code/alacritty (B[m [K[1;24r[H[2;41H[?1h=[?2004h[1;23r[H[2;41H[35mg[1;24r[H[2;42H(B[m[1;23r[H[2;41H[31m[1mgi[1;24r[H[2;43H(B[m[1;23r[H[2;41H[35mgit[1;24r[H[2;44H(B[m[1;23r[H[2;44H [1;24r[H[2;45H[1;23r[H[2;45Hl[1;24r[H[2;46H[1;23r[H[2;46Hg[1;24r[H[2;47H[?1l>
|
||||
[?2004l[?25l[H[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K[3d[?12l[?25h[?1h=[1;23r[H[2B* [34m[1mbdd2181(B[m - [32m[1m(2 hours ago)(B[m Add support for recording/running ref tests [32m- Joe Wilm(B[m [1;24r[H[3B[1;23r[H[3B[31m[1m (HEAD -> ref-tests, origin/ref-tests)
|
||||
(B[m[31m|[39m * [34m[1md629f72(B[m - [1;24r[H[5;17H[1;23r[H[5;17H[32m[1m(2 days ago)(B[m WIP on master: d97996e Make bindings configurable f
rom alacritty.yml[1;24r[H[6;18H[1;23r[H[6;18H [32m- Joe Wilm(B[m[31m[1m (refs/stash)
|
||||
(B[m[31m|[39m [31m|[33m\[39m
|
||||
[31m|/[39m [33m/[39m
|
||||
[31m|[1;24r[H[9;2H(B[m[1;23r[H[9;2H * [34m[1m5908bde(B[m - [32m[1m(2 days ago)(B[m index on master: d97996e Make bindings configurable f [1;24r[H[9B[1;23r[H[9Brom alacritty.yml [32m- Joe Wilm
|
||||
(B[m[31m|/[39m
|
||||
* [34m[1md97996e(B[m - [32m[1m(4 days [1;24r[H[12;21H(B[m[1;23r[H[12;21H[32m[1mago)(B[m Make bindings configurable from alacritty.yml [32m- Joe Wil(B[m
[32mm(B[m[31m[1m (o[1;24r[H[13;5H(B[m[1;23r[H[13;5H[31m[1mrigin/master, origin/bindings-v2, origin/HEAD, master, bindings-v2)
|
||||
(B[m* [34m[1mcb2bc4e(B[m - [32m[1m(4 days ago)(B[m Fix t[1;24r[H[14;31H[1;23r[H[14;31Hest for Cell layout [32m- Joe Wilm
|
||||
(B[m* [34m[1mcbb9167(B[m - [32m[1m(5 days ago)(B[m Redraw screen on focus[1;24r[H[15;48H[1;23r[H[15;48H [32m- Joe Wilm
|
||||
(B[m* [34m[1m8360ab4(B[m - [32m[1m(8 days ago)(B[m Fallback to received chars when no bindin[1;24r[H[16;67H[1;23r[H[16;67Hgs [32m- Joe Wilm
|
||||
(B[m* [34m[1m6925daa(B[m - [32m[1m(8 days ago)(B[m Fix/add some keybindings [32m- Jo[1;24r[H[17;55H(B[m[1;23r[H[17;55H[32me Wilm
|
||||
(B[m* [34m[1me426013(B[m - [32m[1m(8 days ago)(B[m Fix alacritty shutdown when shell exits on macOS [1;24r[H[18;75H[1;23r[H[18;75H[32m- Joe (B[m
[32mWilm
|
||||
(B[m* [34m[1m8cbd768(B[m - [32m[1m(8 days ago)(B[m Fix resize [1;24r[H[20;37H[1;23r[H[20;37Hon macOS leaving screen blank [32m- Joe Wilm
|
||||
(B[m* [34m[1ma652b4a(B[m - [32m[1m(8 days ago)(B[m Rustup [1;24r[H[21;33H[1;23r[H[21;33H[32m- Joe Wilm
|
||||
(B[m* [34m[1m3e0b2b6(B[m - [32m[1m(8 days ago)(B[m Fix config file reloading on macOS [32m- [1;24r[H[22;63H(B[m[1;23r[H[22;63H[32mJoe Wilm
|
||||
(B[m* [34m[1mbe036ed(B[m - [32m[1m(8 days ago)(B[m Workaround for cutoff glyphs [32m- Joe Wilm[1;24r[H[23;65H(B[m[1;23r[H[23d
|
||||
* [34m[1m82c8804(B[m - [32m[1m(3 weeks ago)(B[m Update default config [32m- Joe Wilm(B[m
|
||||
:[K[1;24r[H[23;2H[?25l
|
||||
[30m[43m1:git*[44m (B[m[23;2H[?12l[?25h
[K[1;23r[H[23d* [34m[1ma81152c(B[m - [32m[1m(3 weeks ago)(B[m Support drawing bold test with bright colors [32m- Joe Wil(B[m
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[32mm(B[m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d* [34m[1m7cd8a6c(B[m - [32m[1m(3 weeks ago)(B[m Merge branch 'reload-colors' [32m- Joe Wilm(B[m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[35m\[39m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1mf8cb6d4(B[m - [32m[1m(3 weeks ago)(B[m Set colors on CPU [32m- Joe Wilm(B[m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1mcb2fa27(B[m - [32m[1m(3 weeks ago)(B[m Dynamically update render_timer config [32m- Joe Wilm[1;24r[H[23;78H(B[m[1;23r[H[23d
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1m06ea6c8(B[m - [32m[1m(3 weeks ago)(B[m Move config reloading to separate thread [32m- Joe Wilm[1;24r[H[23;80H(B[m[1;23r[H[23d
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1m0958c0f(B[m - [32m[1m(4 weeks ago)(B[m Move color indexing to vertex shader [32m- Joe Wilm[1;24r[H[23;76H(B[m[1;23r[H[23d
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1me9304af(B[m - [32m[1m(4 weeks ago)(B[m Expand cell::Color layout tests [32m- Joe Wilm[1;24r[H[23;71H(B[m[1;23r[H[23d
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1m741a8b3(B[m - [32m[1m(4 weeks ago)(B[m Fix some compiler warnings [32m- Joe Wilm(B[m
|
||||
[1;24r[H[23d[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1mb29eed2(B[m - [32m[1m(4 weeks ago)(B[m Add discriminant_value test for cell::Color [32m- Joe Wi[23;1H[1;24r[H[23;80H(B[m[1;23r[H[23;80H[32mi(B[m
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[32mlm(B[m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[34m|[39m * [34m[1m5876b4b(B[m - [32m[1m(4 weeks ago)(B[m Proof of concept live reloading for colors [32m- Joe Wil[23;1H[1;24r[H[23;80H(B[m[1;23r[H[23;80H[32ml(B[m
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[32mm(B[m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d* [35m|[39m [34m[1me503baf(B[m - [32m[1m(3 weeks ago)(B[m Live shader reloading is now a feature [32m- Joe Wilm[1;24r[H[23;78H(B[m[1;23r[H[23d
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[35m|/[39m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[35m|[39m * [34m[1m655e8f4(B[m - [32m[1m(4 weeks ago)(B[m WIP color management [32m- Joe Wilm(B[m[31m[1m (live-reload-[1;24r[H[23;74H(B[m[1;23r[H[23;74H[31m[1mcolors)(B[m[23;1H
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d[35m|/[39m
|
||||
:[K[1;24r[H[23;2H
[K[1;23r[H[23d* [34m[1mea07f03(B[m - [32m[1m(5 weeks ago)(B[m Add test exhibiting SIGBUS on my machine [32m- Joe Wilm(B[m
|
||||
[1;24r[H[23d[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1ma652b4a(B[m - [32m[1m(8 days ago)(B[m Rustup [32m- Joe Wilm(B[m[23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1m8cbd768(B[m - [32m[1m(8 days ago)(B[m Fix resize on macOS leaving screen blank [32m- Joe Wilm[1;24r[H[76C(B[m[23;1H[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM[32mWilm(B[m[23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1me426013(B[m - [32m[1m(8 days ago)(B[m Fix alacritty shutdown when shell exits on macOS [32m- Joe [1;1H[1;24r[79C(B[m[23;1H[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1m6925daa(B[m - [32m[1m(8 days ago)(B[m Fix/add some keybindings [32m- Joe Wilm[1;24r[H[23d(B[m[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1m8360ab4(B[m - [32m[1m(8 days ago)(B[m Fallback to received chars when no bindings [32m- Joe Wilm[1;24r[H[79C(B[m[23;1H[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1mcbb9167(B[m - [32m[1m(5 days ago)(B[m Redraw screen on focus [32m- Joe Wilm[1;24r[H[23d(B[m[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1mcb2bc4e(B[m - [32m[1m(4 days ago)(B[m Fix test for Cell layout [32m- Joe Wilm[1;24r[H[23d(B[m[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM[32mm(B[m[31m[1m (origin/master, origin/bindings-v2, origin/HEAD, master, bindings-v2)[1;24r[H
|
||||
(B[m[23d[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1md97996e(B[m - [32m[1m(4 days ago)(B[m Make bindings configurable from alacritty.yml [32m- Joe Wil[1;1H[1;24r[23d(B[m[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM[31m|/[39m [23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HMrom alacritty.yml [32m- Joe Wilm(B[m[23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HM[31m|[39m * [34m[1m5908bde(B[m - [32m[1m(2 days ago)(B[m index on master: d97996e Make bindings configurable f[1;1H[1;24r[79C[23;1H[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM[31m|/[39m [33m/[39m [23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HM[31m|[39m [31m|[33m\[39m [23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HMrom alacritty.yml [32m- Joe Wilm(B[m[31m[1m (refs/stash)(B[m[23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HM[31m|[39m * [34m[1md629f72(B[m - [32m[1m(2 days ago)(B[m WIP on master: d97996e Make bindings configurable f[1;1H[1;24r[79C[23;1H[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[1;23r[HM[31m[1m (HEAD -> ref-tests, origin/ref-tests)(B[m[23;1H[K:[K[1;24r[H[23;2H
[K[1;23r[HM* [34m[1mbdd2181(B[m - [32m[1m(2 hours ago)(B[m Add support for recording/running ref tests [32m- Joe Wilm[1;1H[1;24r[79C(B[m[23;1H[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
[K[K[1;23r[H[23d:[K[1;24r[H[23;2H
|
1
tests/ref/tmux_git_log/grid.json
Normal file
1
tests/ref/tmux_git_log/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
tests/ref/tmux_git_log/size.json
Normal file
1
tests/ref/tmux_git_log/size.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0}
|
118
tests/ref/tmux_htop/alacritty.recording
Normal file
118
tests/ref/tmux_htop/alacritty.recording
Normal file
File diff suppressed because one or more lines are too long
1
tests/ref/tmux_htop/grid.json
Normal file
1
tests/ref/tmux_htop/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
tests/ref/tmux_htop/size.json
Normal file
1
tests/ref/tmux_htop/size.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0}
|
7
tests/ref/vim_simple_edit/alacritty.recording
Normal file
7
tests/ref/vim_simple_edit/alacritty.recording
Normal file
|
@ -0,0 +1,7 @@
|
|||
[1m[7m%[27m[1m[0m
[0m[27m[24m[Jjwilm@kurast.local [01;32m➜ [01;32m [36m~/code/alacritty [00m [K[?1h=[?2004h[1m[31mv[0m[39m[0m[35mv[35mi[39m[35mv[35mi[35mm[39m[?1l>[?2004l
|
||||
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H[1;24r[?12;25h[?12l[?25h[27m[m[38;2;234;234;234m[48;2;0;0;0m[H[2J[>c[?25l[1;1H[38;2;66;66;66m 1
|
||||
~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [m[38;2;234;234;234m[48;2;0;0;0m[24;63H0,0-1[9CAll[7;32HVIM - Vi IMproved[9;33Hversion 7.4.1832[10;29Hby Bram Moolenaar et al.[11;19HVim is open source and freely distributable[13;26HHelp poor children in Uganda![14;18Htype :help iccf[38;2;66;66;66m<Enter>[m[38;2;234;234;234m[48;2;0;0;0m for information [16;18Htype :q[38;2;66;66;66m<Enter>[m[38;2;234;234;234m[48;2;0;0;0m to exit [17;18Htype :help[38;2;66;66;66m<Enter>[m[38;2;234;234;234m[48;2;0;0;0m or [38;2;66;66;66m<F1>[m[38;2;234;234;234m[48;2;0;0;0m for on-line help[18;18Htype :help version7[38;2;66;66;66m<Enter>[m[38;2;234;234;234m[48;2;0;0;0m for version info[1;5H[?12l[?25h[?25l[24;1H[1m[38;2;197;209;92m-- INSERT --[m[38;2;234;234;234m[48;2;0;0;0m[24;63H[K[24;63H0,1[11CAll[7;32H[38;2;66;66;66m [9;33H [10;29H [11;19H [13;26H [14;18H [16;18H [17;18H [18;18H [1;5H[?12l[?25h[?25l[m[38;2;234;234;234m[48;2;0;0;0mu[24;63H1,2[1;6H[?12l[?25h[?25ls[24;65H3[1;7H[?12l[?25h[?25le[24;65H4[1;8H[?12l[?25h[?25l[38;2;66;66;66m·[m[38;2;234;234;234m[48;2;0;0;0m[24;65H5[1;9H[?12l[?25h[?25l s[24;65H6[1;10H[?12l[?25h[?25lt[24;65H7[1;11H[?12l[?25h[?25ld[24;65H8[1;12H[?12l[?25h[?25l:[24;65H9[1;13H[?12l[?25h[?25l:[24;65H10[1;14H[?12l[?25h[?25lf[24;66H1[1;15H[?12l[?25h[?25ls[24;66H2[1;16H[?12l[?25h[?25l;[24;66H3[1;17H[?12l[?25h[?25l
|
||||
[38;2;66;66;66m 2[m[38;2;234;234;234m[48;2;0;0;0m[1C [24;63H2,1 [2;5H[?12l[?25h[?25l
|
||||
[38;2;66;66;66m 3[m[38;2;234;234;234m[48;2;0;0;0m[1C [24;63H3[3;5H[?12l[?25h[?25lf[24;65H2[3;6H[?12l[?25h[?25ln[24;65H3[3;7H[?12l[?25h[?25l[38;2;66;66;66m·[m[38;2;234;234;234m[48;2;0;0;0m[24;65H4[3;8H[?12l[?25h[?25l m[24;65H5[3;9H[?12l[?25h[?25la[24;65H6[3;10H[?12l[?25h[?25li[24;65H7[3;11H[?12l[?25h[?25ln[24;65H8[3;12H[?12l[?25h[?25l([24;65H9[3;13H[?12l[?25h[?25l)[24;65H8[3;12H[?12l[?25h[?25l()[38;2;66;66;66m·[m[38;2;234;234;234m[48;2;0;0;0m[24;65H11[3;15H[?12l[?25h[?25l {[24;66H2[3;16H[?12l[?25h[?25l
|
||||
[38;2;66;66;66m 4 ·[4;6H·[4;7H·[4;8H·[m[38;2;234;234;234m[48;2;0;0;0m[4;9H [24;63H4,5 [4;9H[?12l[?25h[?25l
|
||||
[38;2;66;66;66m 5 ·[5;6H·[5;7H·[5;8H·[m[38;2;234;234;234m[48;2;0;0;0m[5;9H [24;63H5[5;9H[?12l[?25h[?25l }[24;63H3,11[3;15H[?12l[?25h[24;1H[K[5;5H[?25l} [24;1H[1m[38;2;197;209;92m-- INSERT --[m[38;2;234;234;234m[48;2;0;0;0m[50C5,2[11CAll[5;6H[?12l[?25h[?25l[24;1H[K[3;15H[48;2;66;66;66m{[5;5H}[m[38;2;234;234;234m[48;2;0;0;0m[24;63H5,1[11CAll[5;5H[?12l[?25h[?25l[24;63H[K[24;1H:[?12l[?25hs[?25l[?12l[?25he[?25l[?12l[?25ht[?25l[?12l[?25h[?25l [?12l[?25hf[?25l[?12l[?25ht[?25l[?12l[?25h=[?25l[?12l[?25hr[?25l[?12l[?25hu[?25l[?12l[?25hs[?25l[?12l[?25ht[?25l[?12l[?25h
[?25l[1;5H[38;2;207;171;224muse[m[38;2;234;234;234m[48;2;0;0;0m [38;2;237;158;86mstd::[m[38;2;234;234;234m[48;2;0;0;0m[3;5H[38;2;207;171;224mfn[m[38;2;234;234;234m[48;2;0;0;0m [38;2;140;182;225mmain[m[38;2;234;234;234m[48;2;0;0;0m[24;63H5,1[11CAll[5;5H[?12l[?25h
|
1
tests/ref/vim_simple_edit/grid.json
Normal file
1
tests/ref/vim_simple_edit/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
tests/ref/vim_simple_edit/size.json
Normal file
1
tests/ref/vim_simple_edit/size.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0}
|
Loading…
Reference in a new issue