File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 88 description = "Clear the terminal screen." ,
99)
1010
11- parser .add_option ("-T" , metavar = "TERM" , help = "(unimplemented)" )
12-
1311parser .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
Original file line number Diff line number Diff line change 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-
1814parser .add_option (
1915 "-q" ,
2016 action = "store_true" ,
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 )
4230def python_userland_reset (opts , args ):
You can’t perform that action at this time.
0 commit comments