10057518cb
Implement a status line
...
The status line shows information about the shown file, such as size,
modification time and permissions.
2023-09-10 11:36:35 +02:00
2ecde4fea5
Implement getFileInfo to retrieve meta data
...
getFileInfo returns a record containing meta data about the given file,
such as permissions, last modification time and time. We'll use this
action to fill a neat status bar.
2023-09-01 18:27:39 +02:00
1de42395d4
Implement basic hcat functionality
...
We show a simple UI that informs the user about the possible choices:
- n to show the next page
- q to quit immediately
2023-08-30 19:46:40 +02:00
8b1755425c
Implement utility functions to deal with the user
...
- getTerminalSize -> returns the dimensions of the terminal
- getUserCommand -> returns input from the user. We currently support
- ``NextPage`` and `Quit`.
Implement getTerminalSize via 'tput'
2023-08-29 23:27:18 +02:00
b783faef1a
Implement wordWrap and paginate
2023-08-28 19:11:51 +02:00
7a69fb2363
Make 'nix flake check' work
2023-08-19 01:10:47 +02:00
a102423515
Cover our utility functons with unit tests
2023-08-17 22:30:39 +02:00
ace38dcebc
Move code to Internal module and add tests
2023-08-15 19:47:37 +02:00
2ac76cb650
Replace String by Text
2023-08-13 13:32:14 +02:00
81b0437bb7
Implement a tiny cat version
...
We only support a single file which gets written to stdout. Non-existing
files or other errors are printed to stderr and the program terminates.
2023-08-13 10:55:57 +02:00
babdc90cef
Initial import
2023-08-12 10:50:03 +02:00