 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Thu Jun 14, 2012 6:21 am Post subject: List.com for Win_64 |
|
|
Before I moved to 64-bit O/S, I had a simple file scanner list.com.
It was a simple file viewer that could view a group of files, say *.f95
Although it had a number of commands, all I need is:
<Page Up> and <Page Down> scrolls the text of the file in the viewing window.
<ctl><Page Up> and <Ctl><Page Down> went to the next or last file, updating the file name in the window caption.
<home> and <end> keys also went to the top and bottom of the file.
The Q key was also for next file.
The X key was for exit.
(I've forgotten the other commands)
It was a simple 16-bit program that responded to single key strokes that would let me quickly view all the .f95 files in a single directory.
The files are expected to be fortran source code, so not large files, say < 64k.
With 64 bit OS, none of my old .com utilities work anymore.
I had a quick look in the clearwin examples but I can't find the file viewer example. The change I am also looking for is to also respond to a single key stroke. Remember the simple old DOS days, without the pest (mouse)
Does anyone have a simple clearwin+ program that can do just that? |
|
Back to top |
|
 |
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: D�sseldorf, Germany
|
Posted: Thu Jun 14, 2012 8:36 am Post subject: |
|
|
John,
do you know the get_filtered_file@ routine? This opens a standard Windows file manager and may do what you need.
Regards - Wilfried |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Thu Jun 14, 2012 11:33 am Post subject: |
|
|
Wilfried,
John's third-party program allowed him to view the contents of the files too.
John,
Don't you get most of the functionality in Plato?
I have sympathy with this - it took me ages to move from WordStar as a text editor (I was used to the key commands). Progress is sometimes backwards. I could give many examples outside the field of computing. In computing it is grievous when a useful utility no longer works.
E |
|
Back to top |
|
 |
DanRRight
Joined: 10 Mar 2008 Posts: 2923 Location: South Pole, Antarctica
|
Posted: Thu Jun 14, 2012 11:53 am Post subject: |
|
|
John,
FTN95 is powerful tool to do the things exactly as you feel it is best for you. I have written 3-4 such viewers using just the FTN95 but all are not small subprograms and some do just specific for me things or not perfectly finished as a general viewers.
1) One simply uses built-in editor this way
Code: |
i=winio@('%120.50eb[vscrollbar,hscrollbar, no_border,undo]&',
+ 'EDIT_FILE_OPEN', open_filename, fileToEdit,
+ 'EDIT_FILE_SAVE', open_filename, new_file,
+ 'EDIT_FILE_SAVE_AS',open_filename, new_file,
+ 'EXIT','EDIT_UNDO','COPY','CUT','PASTE',
+ 'HELP_CONTENTS',help_file,'HELP_ON_HELP',help_file,
+ '*',0) |
It opens in one push of F3 or Ctrl+E only one specific type of files. Could open *.* too
2) Another looks at any files you want with your desired filter but only shows the file header with first 50 something lines or any block of file with 50 lines (what fits to the screen). Rewritten and finished it could open whole files. Not finished because scroll bar seems had a bug 10 years ago and i have no time to play with it now. General idea is to write file content in text window this way
i=winio@('%120st&', TextFileI_I(j))
I use it to open the file which had an error reading it exactly on the line which caused this error and paint the content of the line in red
3) third opens also just specific type of files showing headers.
4) Fourth opens tree-view of related to the code folders and projects and you can click on them, expand trees and contract them and see, edit and run content in no time. With all that custom icons it looks amazing. It was thought as an entire world of the projects. But it is so complex that it was crashing first 10 years when FTN95 was hell unstable and buggy. Now it crashes much less and the only reason for the crash is that i do not have time to fix one problem: it must be multi-threaded ***locked*** otherwise multiple simultaneous writes crash it. Not using it yet, the peak time of most of interest to that was lost. Learned from this that things must be simple. And that the compilers must have many thousands of users to fix the bugs fast.
Outside the FTN95 i use viewer from 4-5 Total Commanders (from ghisler dot com) painted with different backgrounds and simultaneously open. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|