home · contact · privacy
Announce players leaving the map.
[plomrogue2-experiments] / new2 / rogue_chat_curses.py
index ad9dba169620299ecfd78e598664ce520f556894..10444740821d74ab0ca68d49e8a75aaad019d014 100755 (executable)
@@ -208,19 +208,19 @@ class TUI:
         self.login_name = None
         self.switch_mode('waiting_for_server')
         self.keys = {
-            'switch_to_chat': 'C',
-            'switch_to_play': 'P',
-            'switch_to_annotate': 'E',
-            'switch_to_portal': 'p',
+            'switch_to_chat': 't',
+            'switch_to_play': 'p',
+            'switch_to_annotate': 'm',
+            'switch_to_portal': 'P',
             'switch_to_study': '?',
-            'switch_to_edit': 'E',
-            'flatten': 'f',
+            'switch_to_edit': 'm',
+            'flatten': 'F',
             'hex_move_upleft': 'w',
             'hex_move_upright': 'e',
             'hex_move_right': 'd',
-            'hex_move_downright': 'c',
-            'hex_move_downleft': 'x',
-            'hex_move_left': 's',
+            'hex_move_downright': 'x',
+            'hex_move_downleft': 'y',
+            'hex_move_left': 'a',
             'square_move_up': 'w',
             'square_move_left': 'a',
             'square_move_down': 's',
@@ -584,9 +584,6 @@ class TUI:
                     self.send('TASK:FLATTEN_SURROUNDINGS')
                 elif key in self.movement_keys:
                     self.send('TASK:MOVE ' + self.movement_keys[key])
-                elif key == 'q':
-                    self.log_msg('quitting')
-                    self.send('QUIT')
             elif self.mode == self.mode_edit:
                 self.send('TASK:WRITE ' + key)
                 self.switch_mode('play')