Function to extract terminfo

This commit is contained in:
Kovid Goyal
2023-09-01 19:41:46 +05:30
parent f1ba9f45bc
commit 71a2d7359a
2 changed files with 21 additions and 2 deletions

View File

@@ -39,4 +39,11 @@ func TestExtractShellIntegration(t *testing.T) {
if !bytes.Equal(changed, orig) {
t.Fatalf("Failed to update shell integration file")
}
if err = extract_terminfo(tdir); err != nil {
t.Fatal(err)
}
if _, err := os.Stat(filepath.Join(tdir, "terminfo", "78", "xterm-kitty")); err != nil {
t.Fatal(err)
}
}