46 |
if (len > s->disp_width) |
if (len > s->disp_width) |
47 |
len = s->disp_width; |
len = s->disp_width; |
48 |
if (s->mode == &hex_mode) { |
if (s->mode == &hex_mode) { |
49 |
for(j=0;j<s->disp_width;j++) { |
for (j = 0; j < s->disp_width; j++) { |
50 |
display_char(ds, -1, -1, ' '); |
display_char(ds, -1, -1, ' '); |
51 |
offset1 = offset + j; |
offset1 = offset + j; |
52 |
if (j < len) { |
if (j < len) { |
67 |
display_char(ds, -1, -1, ' '); |
display_char(ds, -1, -1, ' '); |
68 |
} |
} |
69 |
eof = 0; |
eof = 0; |
70 |
for(j=0;j<s->disp_width;j++) { |
for (j = 0; j < s->disp_width; j++) { |
71 |
offset1 = offset + j; |
offset1 = offset + j; |
72 |
if (j < len) { |
if (j < len) { |
73 |
eb_read(s->b, offset + j, &b, 1); |
eb_read(s->b, offset + j, &b, 1); |
172 |
|
|
173 |
for (i = 0; i < size; i++) { |
for (i = 0; i < size; i++) { |
174 |
c = buf[i]; |
c = buf[i]; |
175 |
if (c < 32 && |
if (c < 32 && |
176 |
(c != '\r' && c != '\n' && c != '\t' && |
(c != '\r' && c != '\n' && c != '\t' && |
177 |
c != '\e' && c != '\b' && c != '\f')) |
c != '\e' && c != '\b' && c != '\f')) |
178 |
return 1; |
return 1; |
179 |
} |
} |
180 |
return 0; |
return 0; |
181 |
} |
} |