diff --git a/IPython/core/magic.py b/IPython/core/magic.py
index 28d6f69..0422f62 100644
--- a/IPython/core/magic.py
+++ b/IPython/core/magic.py
@@ -3611,11 +3611,4 @@ Defaulting color scheme to 'NoColor'"""
             with open(new_fname, 'w') as f:
                 current.write(nb, f, new_format)
 
-    if sys.platform == 'win32':
-        def magic_cls(self, s):
-            """Clear screen.
-            """
-            os.system("cls")
-
-
 # end Magic
diff --git a/IPython/frontend/terminal/interactiveshell.py b/IPython/frontend/terminal/interactiveshell.py
index 862f2d4..6767dbb 100644
--- a/IPython/frontend/terminal/interactiveshell.py
+++ b/IPython/frontend/terminal/interactiveshell.py
@@ -608,6 +608,12 @@ class TerminalInteractiveShell(InteractiveShell):
 
         self._execute_block(block, par)
 
+    if sys.platform == 'win32':
+        def magic_cls(self, s):
+            """Clear screen.
+            """
+            os.system("cls")
+
     def showindentationerror(self):
         super(TerminalInteractiveShell, self).showindentationerror()
         print("If you want to paste code into IPython, try the %paste magic function.")