Exemple #1
0
R_API void r_print_cursor(RPrint *p, int cur, int set) {
	if (!p->cur_enabled)
		return;
	if (p->ocur != -1) {
		int from = p->ocur;
		int to = p->cur;
		r_num_minmax_swap_i (&from, &to);
		if (cur>=from && cur<=to)
			r_cons_invert (set, 1); //p->flags&R_PRINT_FLAGS_COLOR);
	} else
	if (cur==p->cur)
		r_cons_invert (set, 1); //p->flags & R_PRINT_FLAGS_COLOR);
}
Exemple #2
0
static void printoffset(ut64 off, int show_color, int invert, int opt) {
	if (show_color) {
		if (invert)
			r_cons_invert (R_TRUE, R_TRUE);
		if (opt) {
			ut32 s, a;
			a = off & 0xffff;
			s = (off-a)>>4;
			r_cons_printf (Color_GREEN"%04x:%04x"Color_RESET, s, a);
		} else r_cons_printf (Color_GREEN"0x%08"PFMT64x""Color_RESET, off);
		if (invert)
			r_cons_printf (Color_RESET);
		r_cons_puts ("  ");
	} else r_cons_printf ("0x%08"PFMT64x"  ", off);