• Tabs.

    From Tinman@VERT/PERKUNAS/TALAMASC to All on Wed Apr 5 13:04:00 2000
    Im try-ing to write what i thought would be a very simple text file viewer that pauses the screen after 24 lines of text. <please dont laph at me>

    Anyhow, im having a problem. It seems that the [TAB] space is throwing my line counter off. The way i have it setup is each time it reads a tab space from the file it incraments the counter 8 logical charictor positions, but what i have found is that the tab space is not always 8 chars long even if it is set to that length...

    Like at the dos prompt, if you type some text and then hit tab two times, you would think that it would display 16 spaces, (8*2), but it doesnt always do that?!?.

    Is there some rule that a tab space must change size depending on where it apears in a string of text??? if so, could somebodey explain it to me?

    please... :-)

    -tinman-

    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://talamasca-bbs.com
  • From Angus Netfoot@VERT/PERKUNAS/TALAMASC to Tinman on Wed Apr 5 16:23:00 2000
    RE: Tabs.
    BY: Tinman to All on Thu Apr 06 2000 12:04 am

    Is there some rule that a tab space must change size depending on where it apears in a string of text??? if so, could somebodey explain it to me?

    Firstly, tab-stops are _usually_ but not _always_ set at 8.

    Secondly, a TAB character will move the cursor over to the next tab-stop, _not_ over by 8 characters. IOW, if your cursor is already on column 5 the TAB will only move you over 3. And if your cursor is on column 33, the TAB will move you over 7.

    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://talamasca-bbs.com