mirror of
https://github.com/samsonjs/csc360-a1-shell.git
synced 2026-04-27 14:57:43 +00:00
[ruby] Implement clear and actually use builtin pwd instead of /bin/pwd
This commit is contained in:
parent
5bb03eb2a2
commit
58f1e48cd2
1 changed files with 6 additions and 1 deletions
|
|
@ -66,9 +66,14 @@ module Shell
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
def bulitin_pwd(_args)
|
def builtin_pwd(_args)
|
||||||
puts Dir.pwd
|
puts Dir.pwd
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def builtin_clear(_args)
|
||||||
|
print "\033[2J"
|
||||||
|
0
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue