![]() |
![]()
| ![]() |
![]()
NAMEsf - An interactive file viewer written for Unix-like systems. OVERVIEWThe sf (or Show File) application displays a text file through a logical window which can be moved forward and backward on the file. The utility is invoked by using the sf command or through the show application. If the sf application is invoked without specifiing a file name, the following prompt requesting a file is displayed. Show File - Enter pathname: The screen format is very simple with a command line at the top of the screen, a display window consisting of the middle rows of the screen, and a file identification line at the bottom of the window. The identification line gives the line and column number of the top left character in the window. An example of the command line and information line is given below. F1-Down, F2-Up, F3-Top, F4-Bottom, Config, Find, Help, Position, Quit, Wrap-on File = /home/robert/sf.txt Top = 1:1 The end of the file is indicated by a "*eof" line displayed in the file window after the last line of the file. COMMAND LINE ARGUMENTS-w, --wrap Enables line wrapping.
--settings-menu Launch sf directly into the settings menu. --help: Displays help message, then exits. --version: Displays program version, then exits. COMMANDSThe sf application provides functions to move the window up or down on the file being displayed. These functions are invoked by function keys specified before the function name. Commands are provided to position the window to a spesific line of the file and to quit the utility. These commands are invoked by using the first letter of the command name. Each of the commands and functions are described below.
Config Launches sf's configuration menu. From here, all aspects of sf can be configured, and settings saved so they will persist between sessions. Further information can be found in the configuring sf section.
CONFIGURING SFsf features an inbuilt configuration menu where the user can tweak the default settings. It is accessed using the Config command. The following screen is displayed. SF Settings Menu - Quit, Revert, Save The menu is made up of toggle switches. When active, the switch will display [*], when inactive [ ] is displayed. To toggle a value, press SPACE when the cursor is highlighed over a specific item. The following commands can be used within this menu. Quit Applies changes and either returns to the previous screen. Revert Reverts settings to their original value from when the settings menu was invoked. Save Saves settings for future sessions. AUTHORRobert Ian Hawdon COPYRIGHT2024, Robert Ian Hawdon
|