library/src/utility/BP-StringFormattingSessions.cc
// Simple routine to display a string entry.  Mostly used for just displaying a simple
// colorized buffer without regard to any column / sfs session data.  Usually done for
// debugging purposes.
Simple routine to display a string entry.  Mostly used for just displaying a simple
colorized buffer without regard to any column / sfs session data.  Usually done for
debugging purposes.
Simple routine to display a string entry . Mostly used for just displaying a simple colorized buffer without regard to any column / sfs session data . Usually done for debugging purposes .
BP_ERROR_T BP_OutputStringEntryAsIsWithoutColumnization(P_BP_SFS_STRING_ENTRY entry)
{
	if(!entry)
		return ERR_FAILURE;
	if(!entry->string || !entry->string_length)
		return ERR_FAILURE;
	size_t n = 0;
	for(; n < entry->string_length; n++)
		BP_printfVTColor("%c", entry->string[n].color_info.fg, entry->string[n].color_info.bg, entry->string[n].character);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_OutputStringEntryAsIsWithoutColumnization ( P_BP_SFS_STRING_ENTRY entry ) { if ( ! entry ) return ERR_FAILURE ; if ( ! entry -> string || ! entry -> string_length ) return ERR_FAILURE ; size_t n = 0 ; for ( ; n < entry -> string_length ; n ++ ) BP_printfVTColor ( " " , entry -> string [ n ] . color_info . fg , entry -> string [ n ] . color_info . bg , entry -> string [ n ] . character ) ; return ERR_SUCCESS ; }
Simple routine to display a string entry.
Simple routine to display a string entry .
// ensure we have an entry // walk entries and display each character in the color specified // return indicating success