MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / userInput

Function userInput

src/bitmessagecli.py:29–43  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

27knownAddresses = dict()
28
29def userInput(message): #Checks input for exit or quit. Also formats for input, etc
30 global usrPrompt
31 print '\n' + message
32 uInput = raw_input('> ')
33
34 if (uInput.lower() == 'exit'): #Returns the user to the main menu
35 usrPrompt = 1
36 main()
37
38 elif (uInput.lower() == 'quit'): #Quits the program
39 print '\n Bye\n'
40 sys.exit()
41 os._exit() # _
42 else:
43 return uInput
44
45def restartBmNotify(): #Prompts the user to restart Bitmessage.
46 print '\n *******************************************************************'

Callers 15

apiInitFunction · 0.85
apiDataFunction · 0.85
bmSettingsFunction · 0.85
subscribeFunction · 0.85
unsubscribeFunction · 0.85
createChanFunction · 0.85
joinChanFunction · 0.85
leaveChanFunction · 0.85
attachmentFunction · 0.85
sendMsgFunction · 0.85
sendBrdFunction · 0.85
inboxFunction · 0.85

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected