[Github-comments] [geany] Read standard input as new file (#780)

Matthew Brush notifications at xxxxx
Sat Nov 28 01:21:02 UTC 2015


I could've swore there was an Issue for this already, but I can't seem to find it (maybe on SF.net?).

@naturalspringwater what would happen if you did something like this?

```bash
cat /dev/random | geany -
```

Ignoring the fact that it would eventually get zeroes which would cause other problems, should Geany show it's window and read-in chunks and update the UI, or should it just read the whole input (forever) until it uses too much memory and crashes (or gets killed by the OS or whatever)?

I think on Windows, Geany only allocates a console (and hence only has stdio) when `-v` option is passed. I guess it would need a special case for `-` as well to cause it to call `AllocConsole` or whatever it does for `-v`.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/780#issuecomment-160235386
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151127/0ae004b1/attachment.html>


More information about the Github-comments mailing list