diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-09 14:37:23 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-09 14:37:23 -0700 |
commit | fa68c2619fe844395287c33c9109f6decb322410 (patch) | |
tree | eff672bd30febc2f39319201e7d1db87c3d4f600 /output.cpp | |
parent | 7f2c4cbf8a1c961b06c3801ce00a9233fb78d2d1 (diff) |
Use parm_left_cursor and parm_right_cursor for bulk cursor motions.
Fixes #1448
Diffstat (limited to 'output.cpp')
-rw-r--r-- | output.cpp | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -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); + } +} |