summaryrefslogtreecommitdiff
path: root/Userland/more.cpp
AgeCommit message (Collapse)Author
2020-08-17Userland: Explicitly ignore number of types read, found by CoverityBrian Gianforcaro
2020-08-12Userland: Mark compilation-unit-only functions as staticBen Wiederhake
This enables a nice warning in case a function becomes dead code.
2020-02-08more: Read keystrokes from stdout instead of trying to re-open itAndreas Kling
If we're running more on a TTY that we don't have filesystem access to, we can't rely on open(ttyname(STDOUT_FILENO)). Since all the stdio fd's are opened read/write anyway, we can just read from stdout, even if it feels a bit weird. :^)
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-13more: Use pledge()Brian Gianforcaro
2019-08-01more: Don't printf(string), printf("%s", string)!Andreas Kling
Found by PVS-Studio.
2019-06-07Userland: Run clang-format on everything.Andreas Kling
2018-12-21Add a simple /bin/more.Andreas Kling