Skip to content

Commit 268b4a4

Browse files
committed
add clear command to OBCEditor
- Clear the Console output of OBCEditor
1 parent 9bb2019 commit 268b4a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/OBCEditor/OBCEditor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def main():
9393
print("Enter 'strings' to display strings in the OBC Script.")
9494
print("Enter 'save' to save changes and exit.")
9595
print("Enter 'help' to display help how to modify OBC Script.")
96+
print("Enter 'clear' to clear the Console output")
9697
print("Enter 'exit' to exit without saving.")
9798

9899
choice = input("Your choice: ").lower()
@@ -129,6 +130,8 @@ def main():
129130
print(f"{i+1}. 0x{offset:08X}")
130131
elif choice == 'strings':
131132
display_strings(content)
133+
elif choice == 'clear':
134+
print("\033[2J\033[H")
132135
elif choice == 'save':
133136
# Get the current year
134137
current_year = str(datetime.datetime.now().year)

0 commit comments

Comments
 (0)