Skip to content

Commit f57a1f5

Browse files
committed
clear shwell command
1 parent edf5933 commit f57a1f5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ pwint(owofy("This is pyth"))
128128
This is pythOwO
129129
```
130130

131+
<h3 align="center">Clear</h3>
132+
You can clear the shell with the CWEAR command
133+
134+
```
135+
(。・ω・。)ノ♡ > cwear
136+
```
137+
138+
131139
<h2 align="center">Contribuwuting</h2>
132140
<p align="center">All contribuwutions are welcome, just make a puwull request!</p>
133141

shwell.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/usr/bin/python3
2+
import os
23
import pythowo
34

45
while True:
56
text = input("(。・ω・。)ノ♡ > ")
7+
if text.strip() == "cwear":
8+
os.system('clear' if os.name == 'posix' else 'cls')
9+
continue
610
if text.strip() == "":
711
continue
812
result, error = pythowo.run("<stdin>", text)

0 commit comments

Comments
 (0)