Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ea011d

Browse files
committed
clear, reset: Remove unimplemented options
1 parent 32e9249 commit 4ea011d

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

userland/utilities/clear.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
description="Clear the terminal screen.",
99
)
1010

11-
parser.add_option("-T", metavar="TERM", help="(unimplemented)")
12-
1311
parser.add_option(
1412
"-x", action="store_true", help="do not try to clear the scrollback buffer"
1513
)
@@ -21,6 +19,7 @@ def python_userland_clear(opts, args):
2119
return 1
2220

2321
print("\x1b[2J\x1b[H", end="")
22+
2423
if not opts.x:
2524
print("\x1b[3J", end="")
2625

userland/utilities/reset.py

-12
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
description="Initialize or reset the terminal state.",
1212
)
1313

14-
parser.add_option("-I", action="store_true", help="(unimplemented)")
15-
parser.add_option("-c", action="store_true", help="(unimplemented)")
16-
parser.add_option("-Q", action="store_true", help="(unimplemented)")
17-
1814
parser.add_option(
1915
"-q",
2016
action="store_true",
@@ -29,14 +25,6 @@
2925
help="print the sequence of shell commands to initialize the TERM environment variable",
3026
)
3127

32-
parser.add_option("-w", action="store_true", help="(unimplemented)")
33-
34-
parser.add_option("-e", metavar="CHAR", help="(unimplemented)")
35-
parser.add_option("-i", metavar="CHAR", help="(unimplemented)")
36-
parser.add_option("-k", metavar="CHAR", help="(unimplemented)")
37-
38-
parser.add_option("-m", metavar="MAPPING", help="(unimplemented)")
39-
4028

4129
@core.command(parser)
4230
def python_userland_reset(opts, args):

0 commit comments

Comments
 (0)