There is a SHELL.COM from csh4 (by Kent Williams), which has available source code, and a shareware OH.EXE from Orchard House by Gleason Pace. (An archive of the shareware Orchard House 3.0 has been located.) Orchard House is mainly being brought up because it was referenced by RIPLing Windows Millenium Edition from OS/2 Warp Server: Appendix A, “Interesting Variations” section, which noted some alternatives.
Some software has been released that may serve to modify the default command line shell/interpretor, rather than trying to entirely replace that software. The most famous is DOSKEY, which is bundled with some versions of DOS. However, there may be some other options that may be downloadable. For instance, Free Software For DOS: Keyboard Utils mentions some programs.
Some writing, about getting a similar command line to work in Microsoft Windows, is mentioned at Bourne Shell (or largely compatible) for Microsoft Windows.
With an executable filename of ksh in /bin, this has also be abbreviated as pdksh or oksh.
OpenBSD's FAQ 10 (ksh section) cites this being the same executable as sh. It appears to be a bit simpler of software than bash, but still supporting key popular features such as tab completion, command line editing, and so forth. OpenBSD's implementation is based on pdksh which has only for pdksh's simple licensing requirements.
OpenBSD's PD-ksh for Linux notes some work was done “to make bulding possible on FreeBSD.”
A port called:
oksh: OpenBSDs ksh for Linux
was at http://www.delilinux.de/oksh/ but that website seems to be down now. That port added the restrictions of GPLv3. A Debian package (which unsurprisingly works on something called Debian, and also Ubuntu) has been made for Debian Etch. The web site gives an example of setting PS1: Apparently running:
to get a prompt showing the username and hostname followed by a pound sign, isn't something all ksh implementations can use.
Another alternative, used in 2BSD in 1979 to replace the Bourne shell.
Instead of using sh's syntax:
(or perhaps “
export VARNAME=newval “)
in csh, the commonly used syntax is:
setenv VARNAME=newval ”
There is also tcsh ( Tenex-csh according to NetBSD 4.0 i386 INSTALL.html )
DOSKey comparison chart compares DOSKey to 4DOS and a regular prompt. DOSKey supports command line history, and keyboard aliases. So does 4DOS.
There are some freeware/shareware products that also perform such a thing.
The program screen supports scrollback (by pressing Control A, and then up arrow). Other things one can try are PageUp, Shift-PageUp, and/or Control-PageUp. If one or more of those work, keep in mind that changing terminal windows (Alt-Fkey, or is it Alt-Ctrl-Fkey?) may cause the video buffer to lose track of what is stored, eliminating the possibility to scroll back (as much). If one wishes to view the initial boot screen, a program called dmesg may be available.
The program tmux is similar to screen and may have similar functionality, except that Ctrl-B tends to be used instead of Ctrl-A. An older program called window might also be an alternative.
One may be able to scroll back with PgUp or some modifier combinatino involving PgUp (like Shift-PgUp). However, switching terminal windows is likely to lose any such history.
Jason Hood's “Text Mode” program is meant for DOS. (Zipped locally as tm0305z.zip, with changes.html renamed.)
For DOS, Jason recommends also looking at fontman and palman. He also has Console Size: Console Size (C source code) and Console Size (Windows NT/2K/XP executable binary file) (zipped locally as consz101.zip).
Only 16 bytes: 0xb036e64331c0e640e640b003cd10cd20, Ken Silverman's Utilities page (section on NV) says this sets 80x25 text mode (while clearing the screen) and will “fix the IRQ0 timer rate”. Inefficiently, this is distributed as a zip file 126 byte zip file. The description from the author's web site says, “Set to 80*25 text mode, clear the screen, and fix the IRQ0 timer rate, all in 16 bytes.”