Posted 07 January 2016 - 07:14 PM
I saw a lot of people who made a program to replicate the function of 'cat', but all of them just print the contents of the file and don't allow scrolling.
But then SquidDev told me that's what cat is supposed to do, and now I feel dumb.
See the program for syntax.
Allows for the downloading of files as well. Because that's useful…
It uses arrow keys to scroll left/right and up/down, as well as the mouse scroll. Hold CTRL to mouse-scroll left and right.
When making files, it checks if the path is read-only, and checks if there is enough space.
Also, to exit, press 'X', and to go to a specific line, press 'L'.
To go to bottom of the screen, press 'END' or 'SHIFT+G'. To go to the top, press 'HOME' or 'G'.
But then SquidDev told me that's what cat is supposed to do, and now I feel dumb.
See the program for syntax.
Allows for the downloading of files as well. Because that's useful…
pastebin get en8GA73P less
std pb en8GA73P less
std ld less less
It uses arrow keys to scroll left/right and up/down, as well as the mouse scroll. Hold CTRL to mouse-scroll left and right.
When making files, it checks if the path is read-only, and checks if there is enough space.
Also, to exit, press 'X', and to go to a specific line, press 'L'.
To go to bottom of the screen, press 'END' or 'SHIFT+G'. To go to the top, press 'HOME' or 'G'.
Edited on 08 January 2016 - 04:51 PM