{"id":76,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=76"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"alert-boxes-part-i","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=76","title":{"rendered":"Alert boxes, part I"},"content":{"rendered":"<p>If you type<\/p>\n<pre> alert hello<\/pre>\n<p>at a Terminal prompt, you&#8217;ll get a dialog box with a Cancel button. If you start adding words, as in<\/p>\n<pre>alert hello there you<\/pre>\n<p> you&#8217;ll get a box with several buttons. Phrases should be enclosed in quotes, as in<\/p>\n<pre> alert \"Hello there\" \"What the heck\" \"is this?\"<\/pre>\n<p>When you select a button, your selection is returned to the command line as stdout.<br \/>\nWhat use could this possibly be? See the tip <a HREF=\"\/chunga.php?ID=88\">Bootup Fortune<\/a> for one example, or <a href=\"\/chunga.php?ID=132\">Alert boxes, part II<\/a> for another.<br \/>\nThis is a great way to introduce an element of interactivity into your bash shell scripts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you type alert hello at a Terminal prompt, you&#8217;ll get a dialog box with a Cancel button. If you start adding words, as in alert hello there you you&#8217;ll get a box with several buttons. Phrases should be enclosed in quotes, as in alert &#8222;Hello there&#8220; &#8222;What the heck&#8220; &#8222;is this?&#8220; When you select [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[11],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}