Compare commits
2 commits
af025064f4
...
6b28f5c001
Author | SHA1 | Date | |
---|---|---|---|
6b28f5c001 | |||
a9fe039928 |
3 changed files with 14 additions and 12 deletions
|
@ -17,6 +17,8 @@ HIDDEN_MASK = '*'
|
||||||
|
|
||||||
NEWLINE = 10
|
NEWLINE = 10
|
||||||
|
|
||||||
|
SPACE = 32
|
||||||
|
|
||||||
DELETE = 330
|
DELETE = 330
|
||||||
|
|
||||||
BACKSPACE = 263
|
BACKSPACE = 263
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import curses
|
import curses
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from fallout_functions import slowWrite, centeredWrite, NEWLINE, addSound
|
from fallout_functions import slowWrite, centeredWrite, NEWLINE, SPACE, addSound
|
||||||
|
|
||||||
###################### Functions ############################
|
###################### Functions ############################
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ def makeSelection(scr, SELECTIONS, MSGS):
|
||||||
selection_start_y = scr.getyx()[0]
|
selection_start_y = scr.getyx()[0]
|
||||||
width = scr.getmaxyx()[1]
|
width = scr.getmaxyx()[1]
|
||||||
|
|
||||||
while inchar != NEWLINE:
|
while inchar not in [NEWLINE, SPACE]:
|
||||||
# move to start of selections and hightlight current selection
|
# move to start of selections and hightlight current selection
|
||||||
scr.move(selection_start_y, 0)
|
scr.move(selection_start_y, 0)
|
||||||
line = 0
|
line = 0
|
||||||
|
|
Loading…
Reference in a new issue