$₹€£

Monday, 15 May 2017

Python - Clear shell screen

In windows

import os
cls = lambda: os.system('cls')
cls()
==============================================

Quickest and easiest way without a doubt is Ctrl+L.
This is the same for OS X on the terminal.


===========================================================
Posted by Srinivas at 23:15
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Srinivas
View my complete profile

Blog Archive

  • ►  2018 (24)
    • ►  May (2)
    • ►  February (15)
    • ►  January (7)
  • ▼  2017 (85)
    • ►  December (1)
    • ►  November (1)
    • ►  October (2)
    • ►  September (35)
    • ►  August (5)
    • ►  July (5)
    • ►  June (2)
    • ▼  May (11)
      • Mac Automator : Adding servcie
      • Enable git auto complete and enable color in git t...
      • JavaScript
      • Modal verbs | Can Could May Might
      • Python - Clear shell screen
      • Node js
      • Terminal - Shortcut for Mac
      • Calibre - convert books to support kindle
      • Installing Python in windows
      • Top 5 JavaScript Frameworks 2017
      • Java -point to remember
    • ►  April (8)
    • ►  March (8)
    • ►  February (6)
    • ►  January (1)
  • ►  2016 (43)
    • ►  September (3)
    • ►  August (6)
    • ►  July (6)
    • ►  June (10)
    • ►  May (2)
    • ►  April (4)
    • ►  March (12)

Pages

  • why to read books
  • Java
Simple theme. Powered by Blogger.