home *** CD-ROM | disk | FTP | other *** search
- Short: CD replacement (wildcards, window title)
- Author: soenke@kino-fahrplan.de (Sönke Tesch)
- Uploader: soenke@kino-fahrplan.de
- Type: util/cli
- Replaces: util/dir/TitleCD.lha
- Keywords: CD Modula-2
- Interface: Shell CLI
-
- Overview
- ========
-
- TitleCD is a replacement for the original CD shell command. I wasn`t that
- happy with the way the Shell usually displays the current directory because
- it usually resulted in annoying long prompts of 1/2 to 2/3 times of the
- total width of the shell window. The window title however remained unused..
-
- The whole thing has been extended with wildcard support, an argument that
- speeds up changing between the current and the last directory ("cd lastdir"
- instead of "cd sys:bla/blo/ble/bli") and writing/reading the directory to
- or from a file.
-
- In this release, apart from two exterminated bugs, TitleCD has been extended
- with history functions.
-
- Here's TitleCDs argument list:
- TitleCD DIR,TO/K,FROM/K,LASTDIR/S,NEXT/S,PREV/S,FIRST/S,LAST/S,NOTITLE/S
-
-
- Due to several requests, a version without the title-setting-feature is
- also available. It's available as HistoryCD, also from Aminet:util/cli.
-
-
- Last modifications
- ==================
-
- The first version was born sometime back in 1993, written using the
- DevPac assembler. After M2Amiga Modula-2 had been massively improved
- I used that language again.
- Version 3 was completely re-written using Cyclone Modula-2.
-
- Changes from 4.00 to 4.1:
- + Moving in the history buffer did not work correctly. First time
- was ok, but the next move removed all entries newer than the
- current one. This means you could actually just move backwards.
- Is this a case for Emmett Brown?
- + TitleCD now tries to get the real Shell window, instead of using
- the one that Intuition reports to be currently active. Cost me
- another ~180 bytes (which is the reason why I didn't implement
- this routine earlier).
- + The "broken contents" of the history variable DirHistory was not
- the fault of TitleCD but of set. See "Environment variables"
- above.
- Included fixed get command to solve this problem.
-
- Changes from 3 to 4:
- + History.
- + The routine that calculates the width of the shell window title
- now really does calculate.
- Earlier versions just did some "well, this might be something
- from here minus something from there", not taking into account
- the windows' gadgets and probably also using the wrong font.
- + If the FROM-file contained newlines this option would not work
- since the length calculation was somehow broken.
- Unfortunatly even if fixed FROM would not work with files that
- contain more than one line. Completely re-written that part.
-
-
- Have fun,
- soenke (20-Jun-2000, 12-Jun-2000, 6-Aug-97)
-