src/print.c
static void
flush_bytes(WINDOW *win,
		    char *rowstr,
		    int bytes,
		    int offsetx,
		    bool is_top_deco,
		    bool is_head_deco,
		    bool is_bottom_deco,
			DataDesc *desc,
			Options *opts)
{
	if ((is_top_deco || is_head_deco || is_bottom_deco) &&
		desc->linestyle == 'a' && opts->force_uniborder)
	{
		while (bytes > 0)
		{
			int		column_format = desc->headline_transl[offsetx];

			if (column_format == 'd' && *rowstr == '-')
			{
				waddch(win, ACS_HLINE);
				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else if (column_format == 'L' && (*rowstr == '+' || *rowstr == '|'))
			{
				if (is_head_deco)
					waddch(win, ACS_LTEE);
				else if (is_top_deco)
					waddch(win, ACS_ULCORNER);
				else /* bottom row */
					waddch(win, ACS_LLCORNER);

				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else if (column_format == 'I' && *rowstr == '+')
			{
				if (is_head_deco)
					waddch(win, ACS_PLUS);
				else if (is_top_deco)
					waddch(win, ACS_TTEE);
				else /* bottom row */
					waddch(win, ACS_BTEE);

				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else if (column_format == 'R' && (*rowstr == '+' || *rowstr == '|'))
			{
				if (is_head_deco)
					waddch(win, ACS_RTEE);
				else if (is_top_deco)
					waddch(win, ACS_URCORNER);
				else /* bottom row */
					waddch(win, ACS_LRCORNER);

				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else
			{
				int len = charlen(rowstr);

				waddnstr(win, rowstr, len);
				offsetx += utf_dsplen(rowstr);
				rowstr +=len;
				bytes -= len;
			}
		}
	}
	else
	{
		/*
		 * waddnstr is working with utf8 on ncursesw
		 */
		waddnstr(win, rowstr, bytes);
	}
}
/*
 * Flush data to window. When row is a decoration, then
 * replace ascii decoration by special terminal decoration.
 */
Flush data to window. When row is a decoration, then
replace ascii decoration by special terminal decoration.
Flush data to window . When row is a decoration then replace ascii decoration by special terminal decoration .
static void
flush_bytes(WINDOW *win,
		    char *rowstr,
		    int bytes,
		    int offsetx,
		    bool is_top_deco,
		    bool is_head_deco,
		    bool is_bottom_deco,
			DataDesc *desc,
			Options *opts)
{
	if ((is_top_deco || is_head_deco || is_bottom_deco) &&
		desc->linestyle == 'a' && opts->force_uniborder)
	{
		while (bytes > 0)
		{
			int		column_format = desc->headline_transl[offsetx];
			if (column_format == 'd' && *rowstr == '-')
			{
				waddch(win, ACS_HLINE);
				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else if (column_format == 'L' && (*rowstr == '+' || *rowstr == '|'))
			{
				if (is_head_deco)
					waddch(win, ACS_LTEE);
				else if (is_top_deco)
					waddch(win, ACS_ULCORNER);
				else 
					waddch(win, ACS_LLCORNER);
				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else if (column_format == 'I' && *rowstr == '+')
			{
				if (is_head_deco)
					waddch(win, ACS_PLUS);
				else if (is_top_deco)
					waddch(win, ACS_TTEE);
				else 
					waddch(win, ACS_BTEE);
				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else if (column_format == 'R' && (*rowstr == '+' || *rowstr == '|'))
			{
				if (is_head_deco)
					waddch(win, ACS_RTEE);
				else if (is_top_deco)
					waddch(win, ACS_URCORNER);
				else 
					waddch(win, ACS_LRCORNER);
				rowstr += 1;
				bytes -= 1;
				offsetx += 1;
			}
			else
			{
				int len = charlen(rowstr);
				waddnstr(win, rowstr, len);
				offsetx += utf_dsplen(rowstr);
				rowstr +=len;
				bytes -= len;
			}
		}
	}
	else
	{
		waddnstr(win, rowstr, bytes);
	}
}
static void flush_bytes ( WINDOW * win , char * rowstr , int bytes , int offsetx , bool is_top_deco , bool is_head_deco , bool is_bottom_deco , DataDesc * desc , Options * opts ) { if ( ( is_top_deco || is_head_deco || is_bottom_deco ) && desc -> linestyle == ' ' && opts -> force_uniborder ) { while ( bytes > 0 ) { int column_format = desc -> headline_transl [ offsetx ] ; if ( column_format == ' ' && * rowstr == ' ' ) { waddch ( win , ACS_HLINE ) ; rowstr += 1 ; bytes -= 1 ; offsetx += 1 ; } else if ( column_format == ' ' && ( * rowstr == ' ' || * rowstr == ' ' ) ) { if ( is_head_deco ) waddch ( win , ACS_LTEE ) ; else if ( is_top_deco ) waddch ( win , ACS_ULCORNER ) ; else waddch ( win , ACS_LLCORNER ) ; rowstr += 1 ; bytes -= 1 ; offsetx += 1 ; } else if ( column_format == ' ' && * rowstr == ' ' ) { if ( is_head_deco ) waddch ( win , ACS_PLUS ) ; else if ( is_top_deco ) waddch ( win , ACS_TTEE ) ; else waddch ( win , ACS_BTEE ) ; rowstr += 1 ; bytes -= 1 ; offsetx += 1 ; } else if ( column_format == ' ' && ( * rowstr == ' ' || * rowstr == ' ' ) ) { if ( is_head_deco ) waddch ( win , ACS_RTEE ) ; else if ( is_top_deco ) waddch ( win , ACS_URCORNER ) ; else waddch ( win , ACS_LRCORNER ) ; rowstr += 1 ; bytes -= 1 ; offsetx += 1 ; } else { int len = charlen ( rowstr ) ; waddnstr ( win , rowstr , len ) ; offsetx += utf_dsplen ( rowstr ) ; rowstr += len ; bytes -= len ; } } } else { waddnstr ( win , rowstr , bytes ) ; } }
Flush data to window.
Flush data to window .
/* bottom row */ /* bottom row */ /* bottom row */ /*
		 * waddnstr is working with utf8 on ncursesw
		 */