Compare commits

...

2 Commits

Author SHA1 Message Date
vulpine a22785e58e Revert "allow scp chars for bigmono12"
This reverts commit 795dbad1b1.
2020-07-23 20:12:16 +00:00
vulpine 19abfbb98c Revert "allow all single-length charactors"
This reverts commit 366a5f96cc.
2020-07-23 20:12:12 +00:00
1 changed files with 2 additions and 1 deletions

3
nboard
View File

@ -5,6 +5,7 @@ import curses,time,json,sys
dataPath = '/home/lickthecheese/nboard/nboard.json'
allowedChars = " `~1234567890-=!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asdfghjkl;'ASDFGHJKL:\"zxcvbnm,./ZXCVBNM<>?"
data = {}
def main(stdscr):
@ -63,7 +64,7 @@ def main(stdscr):
data = json.load(openfile)
# if valid key pressed, write it
if len(k) == 1:
if k in allowedChars:
data[str((ty,tx))] = k
vx = vx+1
with open(dataPath, 'w') as outfile: