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.h | |
parent | 7f2c4cbf8a1c961b06c3801ce00a9233fb78d2d1 (diff) |
Use parm_left_cursor and parm_right_cursor for bulk cursor motions.
Fixes #1448
Diffstat (limited to 'output.h')
-rw-r--r-- | output.h | 29 |
1 files changed, 2 insertions, 27 deletions
@@ -78,33 +78,8 @@ void set_color(rgb_color_t c, rgb_color_t c2); /** Write specified multibyte string */ -#define writembs( mbs ) \ - { \ - char *tmp = mbs; \ - if( tmp ) \ - { \ - writembs_internal( tmp ); \ - } \ - else \ - { \ - debug( 0, \ - _(L"Tried to use terminfo string %s on line %d of %s, which is undefined in terminal of type \"%ls\". Please report this error to %s"), \ - #mbs, \ - __LINE__, \ - __FILE__, \ - output_get_term(), \ - PACKAGE_BUGREPORT); \ - } \ - } - - -/** - Write a char * narrow string to FD 1, needed for the terminfo - strings. This is usually just a wrapper aound tputs, using writeb - as the sending function. But a weird bug on PPC Linux means that on - this platform, write is instead used directly. -*/ -int writembs_internal(char *str); +void writembs_check(char *mbs, const char *mbs_name, const char *file, long line); +#define writembs(mbs) writembs_check((mbs), #mbs, __FILE__, __LINE__) /** Write a wide character using the output method specified using output_set_writer(). |