{"action":"reopened","issue":{"url":"https://api.github.com/repos/joewalnes/websocketd/issues/135","labels_url":"https://api.github.com/repos/joewalnes/websocketd/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/joewalnes/websocketd/issues/135/comments","events_url":"https://api.github.com/repos/joewalnes/websocketd/issues/135/events","html_url":"https://github.com/joewalnes/websocketd/issues/135","id":59764485,"number":135,"title":"Improve 10-minute example by adding reading from STDIN","user":{"login":"ctshh","id":6263,"avatar_url":"https://avatars.githubusercontent.com/u/6263?v=3","gravatar_id":"","url":"https://api.github.com/users/ctshh","html_url":"https://github.com/ctshh","followers_url":"https://api.github.com/users/ctshh/followers","following_url":"https://api.github.com/users/ctshh/following{/other_user}","gists_url":"https://api.github.com/users/ctshh/gists{/gist_id}","starred_url":"https://api.github.com/users/ctshh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctshh/subscriptions","organizations_url":"https://api.github.com/users/ctshh/orgs","repos_url":"https://api.github.com/users/ctshh/repos","events_url":"https://api.github.com/users/ctshh/events{/privacy}","received_events_url":"https://api.github.com/users/ctshh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joewalnes/websocketd/labels/documentation","name":"documentation","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-04T08:20:37Z","updated_at":"2015-03-31T12:31:31Z","closed_at":null,"body":"The 10 minute example does a good job on explaining how to display `STDOUT`, yet fails to (somehow interactively?) read `STDIN` input from the user *back* to the running script. I'd appreciate an example (or an amended 10-minute example) on how to do this.\r\n\r\nI'd appreciate being shown how to bring the classic display-read-compute-display shellscripts to the browser:\r\n\r\n```bash\r\n#!/bin/bash\r\necho \"Some initial text.\"\r\necho \"Now enter your input text: \"\r\nread sometext\r\necho \"You entered --${sometext}--.\"\r\n(...)\r\n```\r\n\r\nThis works quite well using the developer console, as it has an \"input\" field visible all the time (which can be used once an input is required). But how to bring such an input field to the example html stays unclear.\r\n"}}