summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2023-04-28 12:52:21 +0100
committerThomas Adam <thomas@xteddy.org>2023-04-28 12:52:21 +0100
commitfbe6fe7f55cfc2a32f9cee4cb50502a53d3ce8bb (patch)
tree48893180899ba2bda41bf190df66afeb4fc91a01 /tty-term.c
parent168eab11a7cef7ecd8a42ffec160fe2314442b73 (diff)
parent41b318ac7c881fc4cdf834ea5e14a7e8646605aa (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/tty-term.c b/tty-term.c
index 6eb56ec5..7dbcfee7 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -777,8 +777,10 @@ tty_term_string_i(struct tty_term *term, enum tty_code_code code, int a)
#else
s = tparm((char *)x, a, 0, 0, 0, 0, 0, 0, 0, 0);
#endif
- if (s == NULL)
- fatalx("could not expand %s", tty_term_codes[code].name);
+ if (s == NULL) {
+ log_debug("could not expand %s", tty_term_codes[code].name);
+ return ("");
+ }
return (s);
}
@@ -794,8 +796,10 @@ tty_term_string_ii(struct tty_term *term, enum tty_code_code code, int a, int b)
#else
s = tparm((char *)x, a, b, 0, 0, 0, 0, 0, 0, 0);
#endif
- if (s == NULL)
- fatalx("could not expand %s", tty_term_codes[code].name);
+ if (s == NULL) {
+ log_debug("could not expand %s", tty_term_codes[code].name);
+ return ("");
+ }
return (s);
}
@@ -812,8 +816,10 @@ tty_term_string_iii(struct tty_term *term, enum tty_code_code code, int a,
#else
s = tparm((char *)x, a, b, c, 0, 0, 0, 0, 0, 0);
#endif
- if (s == NULL)
- fatalx("could not expand %s", tty_term_codes[code].name);
+ if (s == NULL) {
+ log_debug("could not expand %s", tty_term_codes[code].name);
+ return ("");
+ }
return (s);
}
@@ -829,8 +835,10 @@ tty_term_string_s(struct tty_term *term, enum tty_code_code code, const char *a)
#else
s = tparm((char *)x, (long)a, 0, 0, 0, 0, 0, 0, 0, 0);
#endif
- if (s == NULL)
- fatalx("could not expand %s", tty_term_codes[code].name);
+ if (s == NULL) {
+ log_debug("could not expand %s", tty_term_codes[code].name);
+ return ("");
+ }
return (s);
}
@@ -847,8 +855,10 @@ tty_term_string_ss(struct tty_term *term, enum tty_code_code code,
#else
s = tparm((char *)x, (long)a, (long)b, 0, 0, 0, 0, 0, 0, 0);
#endif
- if (s == NULL)
- fatalx("could not expand %s", tty_term_codes[code].name);
+ if (s == NULL) {
+ log_debug("could not expand %s", tty_term_codes[code].name);
+ return ("");
+ }
return (s);
}