Getting back to the original question about the pagesize, this blog post perfectly illustrates the issue and gives a neat solution.
[https://nim-lang.org/blog/2018/01/22/yes-command-in-nim.html](https://nim-lang.org/blog/2018/01/22/yes-command-in-nim.html)
