help text
This commit is contained in:
parent
18db1f8522
commit
6af16b09a6
1 changed files with 19 additions and 6 deletions
17
nboard
17
nboard
|
@ -1,14 +1,14 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
|
||||||
import curses,time,json
|
import curses,time,json,sys
|
||||||
|
|
||||||
dataPath = '/home/lickthecheese/nboard/nboard.json'
|
dataPath = '/home/lickthecheese/nboard/nboard.json'
|
||||||
allowedChars = " `~1234567890-=!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asdfghjkl;'ASDFGHJKL:\"zxcvbnm,./ZXCVBNM<>?"
|
allowedChars = " `~1234567890-=!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asdfghjkl;'ASDFGHJKL:\"zxcvbnm,./ZXCVBNM<>?"
|
||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
def main(stdscr):
|
def main(stdscr):
|
||||||
stdscr.clear()
|
stdscr.erase()
|
||||||
stdscr.refresh()
|
stdscr.refresh()
|
||||||
k='NOU'
|
k='NOU'
|
||||||
height, width = stdscr.getmaxyx()
|
height, width = stdscr.getmaxyx()
|
||||||
|
@ -97,6 +97,19 @@ def main(stdscr):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
if len(sys.argv) > 1 and (sys.argv[1] == '--help' or sys.argv[1] == 'help'):
|
||||||
|
print("""
|
||||||
|
nboard is like yourworldoftext.com, except its in a terminal.
|
||||||
|
|
||||||
|
use the arrow keys to move arount, and to go to the next 'pane',
|
||||||
|
press & (ampersand, usually shift+7 on standard us keyboards) and then
|
||||||
|
an arrow key
|
||||||
|
once you are in the place you want, you can start typing!
|
||||||
|
|
||||||
|
please report any bugs to ~lickthecheese on IRC or on the github page,
|
||||||
|
https://github.com/LickTheCheese/nboard
|
||||||
|
""")
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
curses.wrapper(main)
|
curses.wrapper(main)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in a new issue