old_contents: """
  Jarvis plugin for clearing the terminal
  """
  from plugin import plugin
  import os
  
  
  @plugin("clear")
  def clear(jarvis, s):
      if os.name == "posix":
          # Unix/Linux/MacOS/BSD/etc
          os.system('clear')
      elif os.name in ("nt", "dos", "ce"):
          # DOS/Windows
          os.system("cls")
  
new_contents: """
  Jarvis plugin for clearing the terminal
  """
  from plugin import plugin, require, WINDOWS, UNIX
  import os
  
  
  @require(platform=UNIX)
  @plugin("clear")
  def clear_unix(jarvis, s):
      # Unix/Linux/MacOS/BSD/etc
      os.system('clear')
  
  
  @require(platform=WINDOWS)
  @plugin("clear")
  def clear_windows(jarvis, s):
      # DOS/Windows
      os.system("cls")
  
subject: Use Jarvis platform check