patch 8.2.1740: test fails without the terminal feature

Problem:    Test fails without the terminal feature.
Solution:   Skip test if the terminal feature is not available.
diff --git a/src/version.c b/src/version.c
index 374f5a1..4295f2f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1740,
+/**/
     1739,
 /**/
     1738,