{"id":150,"date":"2012-05-24T13:48:03","date_gmt":"2012-05-24T12:48:03","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/xallam\/?p=150"},"modified":"2012-05-24T13:48:03","modified_gmt":"2012-05-24T12:48:03","slug":"clear-terminal-on-ansi-way","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/xallam\/2012\/05\/24\/clear-terminal-on-ansi-way\/","title":{"rendered":"Clear terminal on ANSI way."},"content":{"rendered":"<p>After searching for a way of clearing the terminal (or console, as you prefer), I found this post \"<a href=\"http:\/\/forum.codecall.net\/topic\/59142-how-to-clear-the-console-screen-with-ansi-any-language\/\">Language Agnostic Clearing of Console Screen: Without clear() or cls()<\/a>\". It's a pretty good option, easy and without complicated tricks to do this.<\/p>\n<p>On Java:<\/p>\n<blockquote>\n<pre>public class ansiclrscr {\r\n    public static void main(String[] argv) {\r\n        System.out.print(\"foo\\nbar\\nbaz\\nquux\");\r\n        System.out.print(\"33[2J33[;H\");\r\n        System.out.print( \"I am at cursor position 0,0 on a clean  screen.\");\r\n    }\r\n}<\/pre>\n<\/blockquote>\n<pre>Simple, isn't it?<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After searching for a way of clearing the terminal (or console, as you prefer), I found this post \"Language Agnostic Clearing of Console Screen: Without clear() or cls()\". It's a pretty good option, easy and without complicated tricks to do &hellip; <a href=\"https:\/\/blog.espol.edu.ec\/xallam\/2012\/05\/24\/clear-terminal-on-ansi-way\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[337],"tags":[146849,146850,5362,21302],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-links","tag-clear","tag-cls","tag-java","tag-terminal"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":1,"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/posts\/150\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/xallam\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}