home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In clients, show text input cursor.
[plomrogue2]
/
rogue_chat_curses.py
diff --git
a/rogue_chat_curses.py
b/rogue_chat_curses.py
index c6113df93001d75f618f2916a2443e090bcfe524..07c8697fc71d160cf63d9f43914f2d1ed64d58ec 100755
(executable)
--- a/
rogue_chat_curses.py
+++ b/
rogue_chat_curses.py
@@
-178,11
+178,11
@@
def cmd_TURN(game, n):
game.turn_complete = False
cmd_TURN.argtypes = 'int:nonneg'
game.turn_complete = False
cmd_TURN.argtypes = 'int:nonneg'
-def cmd_
PSEUDO_FOV
_WIPE(game):
+def cmd_
OTHER
_WIPE(game):
game.portals_new = {}
game.annotations_new = {}
game.things_new = []
game.portals_new = {}
game.annotations_new = {}
game.things_new = []
-cmd_
PSEUDO_FOV
_WIPE.argtypes = ''
+cmd_
OTHER
_WIPE.argtypes = ''
def cmd_LOGIN_OK(game):
game.tui.switch_mode('post_login_wait')
def cmd_LOGIN_OK(game):
game.tui.switch_mode('post_login_wait')
@@
-377,7
+377,7
@@
class Game(GameBase):
self.register_command(cmd_REPLY)
self.register_command(cmd_PLAYER_ID)
self.register_command(cmd_TURN)
self.register_command(cmd_REPLY)
self.register_command(cmd_PLAYER_ID)
self.register_command(cmd_TURN)
- self.register_command(cmd_
PSEUDO_FOV
_WIPE)
+ self.register_command(cmd_
OTHER
_WIPE)
self.register_command(cmd_THING)
self.register_command(cmd_THING_TYPE)
self.register_command(cmd_THING_NAME)
self.register_command(cmd_THING)
self.register_command(cmd_THING_TYPE)
self.register_command(cmd_THING_NAME)
@@
-885,7
+885,8
@@
class TUI:
if not self.mode.has_input_prompt:
self.input_lines = []
else:
if not self.mode.has_input_prompt:
self.input_lines = []
else:
- self.input_lines = msg_into_lines_of_width(input_prompt + self.input_,
+ self.input_lines = msg_into_lines_of_width(input_prompt
+ + self.input_ + '█',
self.window_width)
def move_explorer(direction):
self.window_width)
def move_explorer(direction):
@@
-1098,7
+1099,7
@@
class TUI:
def enter_ascii_art(command):
if len(self.input_) != 6:
def enter_ascii_art(command):
if len(self.input_) != 6:
- self.log_msg('? wrong input length, try again')
+ self.log_msg('? wrong input length,
must be 6;
try again')
return
self.log_msg(' ' + self.input_)
self.full_ascii_draw += self.input_
return
self.log_msg(' ' + self.input_)
self.full_ascii_draw += self.input_