Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1.     if (data[i] == '\b') {
  2.         int new_line = 0, new_col = 0;
  3.         if (out->buffer_pos.column == 0) {
  4.         new_line = out->buffer_pos.line - 1;
  5.         new_col = out->screen_width;
  6.         } else {
  7.         new_line = out->buffer_pos.line;
  8.         new_col = out->buffer_pos.column - 1;
  9.         }
  10.         output_set_position(out, new_line, new_col);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement