Category : Word Processors
Archive   : TABEDIT.ZIP
Filename : TABEDIT.DOC

 
Output of file : TABEDIT.DOC contained in archive : TABEDIT.ZIP


Here's a quick summary of the function of entab and detab:

Detab takes files and turns their tabs into spaces. When a
tab is encountered, an appropriate number of spaces are
inserted to advance to the next tab stop. By default, tabs
are set every 8th column. The -tN option changes the tabs
to every Nth column.

Entab takes files and turns spaces into tabs where it would
reduce the number of characters. Remember that entab doesn't
know about things like quoted strings, so it may change spaces
to tabs inside a string; watch out for this. Like detab, the
default tabstops are every 8th column, and can be changed with
the -tN option.

Both entab and detab can have their default tabstops changed
from every 8th column by using an environment variable. For
example, the command

SET TABS=4

changes the default tabstops to every 4th column.

For more details on the operation of entab and detab, see the
header in the C source files. In particular, note the use of
the getenv() call to obtain a value set by DOS's SET command.
It's a mighty handy way to set up values needed by utilities.
Lattice C has the getenv() call, which is a standard Unix C
library call. Hopefully your compiler will have it too.
If not, you might try writing your own interface in assembler.



  3 Responses to “Category : Word Processors
Archive   : TABEDIT.ZIP
Filename : TABEDIT.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/