{"id":1294,"date":"2016-07-18T06:35:25","date_gmt":"2016-07-18T06:35:25","guid":{"rendered":"http:\/\/www.testingdocs.com\/questions\/?p=1294"},"modified":"2024-08-09T02:36:32","modified_gmt":"2024-08-09T02:36:32","slug":"what-is-the-difference-between-cli-program-and-gui-program","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/what-is-the-difference-between-cli-program-and-gui-program\/","title":{"rendered":"Difference between CLI program and GUI program?"},"content":{"rendered":"<h2>Difference between CLI program and GUI program?<\/h2>\n<p>Key differences and features of <b>CLI<\/b> and <b>GUI<\/b> programs are listed below.<\/p>\n<h2><strong><b>CLI<\/b> Program<\/strong><\/h2>\n<p><b>Command line<\/b> program or classic <b>CLI<\/b> program ( <b>Command line interface<\/b> ) works in simple fashion. It prompts and accepts data from the <b>command line<\/b> and processes the input data. Optionally, the <b>CLI<\/b> program accepts <b>command line<\/b> parameters to the program. The output is displayed to standard output devices or written to a file. The <b>CLI<\/b> program exits once the output is displayed. <b>CLI<\/b> programs have minimal interaction from the user.<\/p>\n<p>Sample <b>CLI<\/b> Program flow chart below:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-792\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/CLI_Program.png\" alt=\"CLI Program\" width=\"882\" height=\"616\" title=\"\"><\/p>\n<h2><strong><b>GUI<\/b> Program<\/strong><\/h2>\n<p><b>GUI<\/b> ( Graphical User Interfaces ) programs have <b>user interfaces<\/b>. The <b>user interface<\/b> contains controls, buttons, windows, etc. These controls help the end user to use the application with ease. <b>GUI<\/b> programs are interactive. <b>GUI<\/b> program waits for events. Most programming languages\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">support the development of\u00a0<strong>GUI<\/strong> programs using native GUI Toolkit<\/span>.<\/p>\n<p>Sample <b>GUI<\/b> Program flow chart below:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-794\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GUI_Program.png\" alt=\"GUI Program\" width=\"903\" height=\"584\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Graphical programs wait until\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">the user performs some action. Once the user performs some action, a callback or an event handler is invoked to perform some intended functionality.\u00a0<strong>GUI<\/strong> programs normally allow the user to gracefully stop the program by clicking on the\u00a0<\/span>x button on the window.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Difference between CLI program and GUI program? : Key differences and features of CLI and GUI programs are listed below.<br \/>\nCLI Program<\/p>\n<p>Command line program<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1294","post","type-post","status-publish","format-standard","hentry","category-automation","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1294"}],"version-history":[{"count":6,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1294\/revisions"}],"predecessor-version":[{"id":23585,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1294\/revisions\/23585"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}