3

I am currently making a command line application in swift 2 which shows the user options on what they can do, after they select an action, I would like to clear the console.

How would I simulate the bash clear command in swift without using system()?

If I run system("clear") in Xcode I get the following error:

TERM environment variable not set.

I know that I would not get this issue when running the script in terminal, I would just like to make my script 100% swift 2

braX
  • 10,905
  • 5
  • 18
  • 32
iProgram
  • 5,317
  • 8
  • 34
  • 74

0 Answers0