Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (data[i] == '\b') {
- int new_line = 0, new_col = 0;
- if (out->buffer_pos.column == 0) {
- new_line = out->buffer_pos.line - 1;
- new_col = out->screen_width;
- } else {
- new_line = out->buffer_pos.line;
- new_col = out->buffer_pos.column - 1;
- }
- output_set_position(out, new_line, new_col);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement