1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00
Commit Graph

777 Commits

Author SHA1 Message Date
Johan Walles
a241dcf6ca PgUp / PgDown 2019-06-13 06:21:43 +02:00
Johan Walles
a14ecc3168 Support moving to top / bottom 2019-06-13 06:14:41 +02:00
Johan Walles
74d4d26112 Support scrolling up and down with arrow buttons 2019-06-12 21:55:09 +02:00
Johan Walles
b7311e5785 Show file contents 2019-06-12 07:07:13 +02:00
Johan Walles
6436cce8f6 Add support for handling keypresses 2019-06-11 21:32:24 +02:00
Johan Walles
95132357b1 Split event handling into more readable pieces 2019-06-11 21:28:21 +02:00
Johan Walles
ab9702953f Better resource cleanup 2019-06-11 21:22:32 +02:00
Johan Walles
6143f3f55f Moar state in the struct 2019-06-11 21:21:12 +02:00
Johan Walles
78c12f8d2f Moar methods, less functions 2019-06-11 21:09:57 +02:00
Johan Walles
29183c1eeb Print a footer at the bottom 2019-06-11 18:52:38 +02:00
Johan Walles
6f13bde11e Show blank screen and wait for user input 2019-06-11 18:29:30 +02:00
Johan Walles
12210d923d Read from the correct stream
Not always from stdin.
2019-06-11 18:28:36 +02:00
Johan Walles
9bf41e8f43 It's *supposed* to be private
I think...
2019-06-11 15:31:26 +02:00
Johan Walles
289dd35bd6 Fix compile error 2019-06-11 13:26:04 +02:00
Johan Walles
e23eaddabd Add placeholder code for starting the pager
This version doesn't compile and I don't know why.
2019-06-10 21:50:31 +02:00
Johan Walles
6d56bb84aa Add a file reading embryo
Nobody calls this yet unfortunately. Save for future use.
2019-06-10 08:30:16 +02:00
Johan Walles
35b0e74293 Fix resource leak 2019-06-10 06:54:08 +02:00
Johan Walles
af23822bc2 Put integration tests in tests.sh
This makes the testing code a bit simpler.
2019-06-09 22:03:25 +02:00
Johan Walles
1031450083 Add some more structure 2019-06-09 21:58:12 +02:00
Johan Walles
3f5451b90e Report missing input file 2019-06-09 21:52:27 +02:00
Johan Walles
c88da93eb6 Support copying from file to redirected stdout 2019-06-09 19:55:49 +02:00
Johan Walles
2225ef826b Rudimentary command line parsing 2019-06-09 19:40:35 +02:00
Johan Walles
0029c2de0f Pass one integration test 2019-06-09 19:34:52 +02:00
Johan Walles
680045fbc1 Add initial integration tests 2019-06-09 18:42:25 +02:00
Johan Walles
1112b75e0e Add a test setup 2019-06-09 07:56:55 +02:00
Johan Walles
61752e8d30 Initial Go setup 2019-06-09 07:47:55 +02:00
Johan Walles
f3097e7450 Reboot in Go 2019-06-08 22:12:52 +02:00