Skip to content

Commit

Permalink
Merge pull request #33 from GijsTimmers/jovanbulck-master
Browse files Browse the repository at this point in the history
colorama is the default communicator now
  • Loading branch information
GijsTimmers committed Dec 4, 2014
2 parents 82dacef + 0d0d2f5 commit c0c8615
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions kotnetcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def argumentenParser():
default credentials",\
action="store_true")

parser.add_argument("-c", "--colortext",\
help="Omits the curses interface by using colortext output",\
parser.add_argument("-c", "--curses",\
help="Logs you in using curses output",\
action="store_true")

parser.add_argument("-t", "--plaintext",\
Expand Down Expand Up @@ -119,10 +119,13 @@ def aanstuurderObvArgumenten(argumenten):

############## 2. switch on communicator-related flags ##############

if argumenten.colortext:
print "ik wil wat kleur in mijn leven aanbrengen"
co = communicator.ColoramaCommunicator()

if argumenten.curses:
print "ik wil vloeken"
if os.name == "posix":
co = communicator.CursesCommunicator()
else:
co = communicator.ColoramaCommunicator()

elif argumenten.plaintext:
print "ik wil terug naar de basis"
co = communicator.PlaintextCommunicator()
Expand All @@ -144,11 +147,9 @@ def aanstuurderObvArgumenten(argumenten):
co = communicator.QuietCommunicator()
else:
## no communicator specified; choose default communicator
print "standaard communicator gekozen"
if os.name == "posix":
co = communicator.CursesCommunicator()
else:
co = communicator.ColoramaCommunicator()
print "ik wil wat kleur in mijn leven aanbrengen"
co = communicator.ColoramaCommunicator()


############## 3. switch on login-type flags ##############

Expand Down

0 comments on commit c0c8615

Please sign in to comment.