aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-09 14:37:23 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-09 14:37:23 -0700
commitfa68c2619fe844395287c33c9109f6decb322410 (patch)
treeeff672bd30febc2f39319201e7d1db87c3d4f600 /output.cpp
parent7f2c4cbf8a1c961b06c3801ce00a9233fb78d2d1 (diff)
Use parm_left_cursor and parm_right_cursor for bulk cursor motions.
Fixes #1448
Diffstat (limited to 'output.cpp')
-rw-r--r--output.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/output.cpp b/output.cpp
index 7f90df4b..149d9d99 100644
--- a/output.cpp
+++ b/output.cpp
@@ -418,13 +418,6 @@ int writeb(tputs_arg_t b)
return 0;
}
-int writembs_internal(char *str)
-{
- CHECK(str, 1);
-
- return tputs(str,1,&writeb)==ERR?1:0;
-}
-
int writech(wint_t ch)
{
mbstate_t state;
@@ -725,3 +718,20 @@ const wchar_t *output_get_term()
{
return current_term.empty() ? L"<unknown>" : current_term.c_str();
}
+
+void writembs_check(char *mbs, const char *mbs_name, const char *file, long line)
+{
+ if (mbs != NULL)
+ {
+ tputs(mbs, 1, &writeb);
+ }
+ else
+ {
+ debug( 0, _(L"Tried to use terminfo string %s on line %ld of %s, which is undefined in terminal of type \"%ls\". Please report this error to %s"),
+ mbs_name,
+ line,
+ file,
+ output_get_term(),
+ PACKAGE_BUGREPORT);
+ }
+}