Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. st = "abcdefghij"
  2. st = st[:-1]
  3.  
  4. elif c == curses.KEY_DC or c == curses.KEY_BACKSPACE or c == 127:
  5. cur_line = cur_line[0:-1]
  6. stdscr.addstr(pos_type, (pos["x"] + pos_msg + len(cur_line)), " ".encode(code))
  7. stdscr.addstr(pos_type, pos_con, " ".encode(code))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement