nit: this is a test, so it doesn't matter, but `"/usr/share/terminfo/s/screen" == x("screen")` would be faster.