@@ -207,33 +207,33 @@ class BgColor(AnsiSequence):
207207
208208
209209####################################################################################
210- # Implementations intended for direct use
210+ # Implementations intended for direct use (do NOT use outside of cmd2)
211211####################################################################################
212212class Cursor :
213213 """Create ANSI sequences to alter the cursor position."""
214214
215215 @staticmethod
216- def UP (count : int = 1 ) -> str :
216+ def up (count : int = 1 ) -> str :
217217 """Move the cursor up a specified amount of lines (Defaults to 1)."""
218218 return f"{ CSI } { count } A"
219219
220220 @staticmethod
221- def DOWN (count : int = 1 ) -> str :
221+ def down (count : int = 1 ) -> str :
222222 """Move the cursor down a specified amount of lines (Defaults to 1)."""
223223 return f"{ CSI } { count } B"
224224
225225 @staticmethod
226- def FORWARD (count : int = 1 ) -> str :
226+ def forward (count : int = 1 ) -> str :
227227 """Move the cursor forward a specified amount of lines (Defaults to 1)."""
228228 return f"{ CSI } { count } C"
229229
230230 @staticmethod
231- def BACK (count : int = 1 ) -> str :
231+ def back (count : int = 1 ) -> str :
232232 """Move the cursor back a specified amount of lines (Defaults to 1)."""
233233 return f"{ CSI } { count } D"
234234
235235 @staticmethod
236- def SET_POS (x : int , y : int ) -> str :
236+ def set_pos (x : int , y : int ) -> str :
237237 """Set the cursor position to coordinates which are 1-based."""
238238 return f"{ CSI } { y } ;{ x } H"
239239
@@ -1059,11 +1059,11 @@ def async_alert_str(*, terminal_columns: int, prompt: str, line: str, cursor_off
10591059
10601060 # Move the cursor down to the last input line
10611061 if cursor_input_line != num_input_terminal_lines :
1062- terminal_str += Cursor .DOWN (num_input_terminal_lines - cursor_input_line )
1062+ terminal_str += Cursor .down (num_input_terminal_lines - cursor_input_line )
10631063
10641064 # Clear each line from the bottom up so that the cursor ends up on the first prompt line
10651065 total_lines = num_prompt_terminal_lines + num_input_terminal_lines
1066- terminal_str += (clear_line () + Cursor .UP (1 )) * (total_lines - 1 )
1066+ terminal_str += (clear_line () + Cursor .up (1 )) * (total_lines - 1 )
10671067
10681068 # Clear the first prompt line
10691069 terminal_str += clear_line ()
0 commit comments