{"id":1317,"date":"2026-01-12T21:49:16","date_gmt":"2026-01-12T21:49:16","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1317"},"modified":"2026-01-12T21:49:28","modified_gmt":"2026-01-12T21:49:28","slug":"mwnci-tty-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-tty-function\/","title":{"rendered":"Mwnci tty() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>tty<strong>()<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>tty()<\/i> function returns the name of the terminal attached to standard input. If the standard input is not a terminal, the string &#8220;Not a tty&#8221; is returned.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"main\")\r\nprintln(tty())\r\n\r\n\r\n\/dev\/pts\/0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax tty() Description The tty() function returns the name of the terminal attached to standard input. If the standard input is not a terminal, the string &#8220;Not a tty&#8221; is returned. Example include(&#8220;main&#8221;) println(tty()) \/dev\/pts\/0<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1317","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1317"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1317\/revisions"}],"predecessor-version":[{"id":1318,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1317\/revisions\/1318"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}