TYPE beeping?

May 20, 2008
11,400
99
Syracuse, NY, USA
I thought there was some recent change that stopped TYPE from beeping when it came upon a 0x07? It's beeping. Am I remembering incorrectly?
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Sep 11, 2012
100
1
Thanks for educating me :)

I have not thought about this since the DOS/BBS days, well around 1988-1992 - so you are right....

Guess the tpipe command could be useful:

13 – Remove binary characters
Removes binary characters such as those higher than ASCII code 127, and
those less than ASCII code 32 except for carriage returns (ASCII code 13) and line feeds (ASCII code 10).
This filter if very useful if you have a corrupted text file, or if you just want to see what text is inside a
binary file. The binary information is removed, leaving you with just the text.


From: http://jpsoft.com/help/index.htm?tpipe.htm

-stein
 
May 30, 2008
235
2
I thought there was some recent change that stopped TYPE from beeping when it came upon a 0x07? It's beeping. Am I remembering incorrectly?

As I understood it was the FFIND command that was supposed to no longer write 0x07 characters to the console.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Type HELP TYPE and look for the /B option.
I see. And that's not new. But it doesn't work correctly. Xavetemp.btm is a BATCOMP'd file and TYPE with /B stops after only a few characters (not having reached a BEL).
Code:
v:\> type /b xavtemp.btm
╛δ╗
v:\> type xavtemp.btm
╛δ╗ ê♥S╖w¶αß°!S!Wu╕▀▓s╬↕rFÇTǺ╜└Y¶↑♀è∙ C«♀♀æ♀▬O₧w∞Q-r.╞╜αr╬╩¼÷←"ó4.▓¼v5.Rä╒σ╬2∙A
ñn§Dm*û$∙Z▼◄═ü/*►1&f8╗ dLj#─B²>0╣♫╫╤╘P╬Üπ&,┐8σ☻ú≥╟►↕♥ì☼w&♀,╤Ä>☻û,¼─oûóà╙╘T≡└╫↑+♠
SNIP!
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
Hunh. It used to work. Now it seems to lose track of the end of the file.

Code:
C:\BIN\JPSDK\TextUtils>type "Engine Summer.txt"

    ThereΓÇÖs a time in some years, after the first frosts, when the sun gets hot
again, and summer returns for a time.  Winter is coming; you know that from the
way the mornings smell, the way the leaves, half-turned to color, are dry and
poised to drop.  But summer goes on, a small false summer, all the more
precious for being small and false.  In Little Belaire, we called this time ΓÇö
for some reason nobody now knows ΓÇö engine summer.

                                        ΓÇö John Crowley

C:\BIN\JPSDK\TextUtils>type ControlChars.txt
This is an escape sequence:   test
This is a control character:
This is another control characters:  ☺
Here are some tabs:     One     Two     Three

C:\BIN\JPSDK\TextUtils>type /b ControlChars.txt
This is an escape sequence:   test
This is a control character:
This is another control characters:  ☺
Here are some tabs:     One     Two     Three
from the
way the mornings smell, the way the leaves, half-turned to color, are dry and
poised to drop.  But summer goes on, a small false summer, all the more
precious for being small and false.  In Little Belaire, we called this time ΓÇö
for some reason nobody now knows ΓÇö engine summer.

                                        ΓÇö John Crowley

C:\BIN\JPSDK\TextUtils>
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I see. And that's not new. But it doesn't work correctly. Xavetemp.btm is a BATCOMP'd file and TYPE with /B stops after only a few characters (not having reached a BEL).

It *does* work correctly; however, TYPE /B is intended for removing bells from text files, not for dumping binary files.

I assume there must be some reason why users want to use the (wildly inappropriate) TYPE command for binary files, but I haven't seen it articulated yet.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
It *does* work correctly; however, TYPE /B is intended for removing bells from text files, not for dumping binary files.

I assume there must be some reason why users want to use the (wildly inappropriate) TYPE command for binary files, but I haven't seen it articulated yet.
TYPE /B doesn't even work correctly on plain text files (as Charles pointed out).
Code:
v:\> echo line 1^r^nline 2 > textfile1.txt

v:\> echo line A > textfile2.txt

v:\> type textfile1.txt
line 1
line 2

v:\> type textfile2.txt
line A

v:\> type /b textfile1.txt
line 1
line 2
♦         --------------- garbage at the end
v:\> type /b textfile2.txt
line A
line 2   ---------------- from the other file!
♦        ---------------- leftover garbage?
v:\>
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly Using TYPE with non-English text Support 22
vefatica TYPE behaving randomly Support 10
vefatica Garbage from TYPE Support 2
vefatica TYPE resets console tab settings Support 14
Joe Caverly Get a variable type Support 2
Joe Caverly v24 TYPE Re-direction Support 4
vefatica TYPE goes crazy with no-BOM Unicode file Support 7
J Piping ANSI control sequences through 'type' Support 4
nickles How to? Follow a JUNCTION type directory link Support 9
S International characters - TYPE vs %@LINE function Support 5
thedave WAD Unable to type various characters using Windows 8's onscreen keyboard Support 7
vefatica Fixed TYPE http://... incomplete data Support 40
Phileosophos Documentation TPIPE /string type code confusion Support 4
S WAD %_do_errors does not report errors when loop control variable type is not directory entry Support 1
Charles Dye TYPE /P behaves strangely with piped/redirected input Support 0
vefatica LIST and TYPE show UTF8 BOM Support 4
vefatica TYPE, Unicode, installer Support 10
Charles Dye Fixed TYPE /X reports FF for all values >= 80h Support 6
M More SafeChars type issues... Support 4
Charles Dye Strange output, here-doc redirection, TYPE, //UnicodeOutput=Yes Support 6
Roedy MIME type for *.btm ? Support 1
S TYPE command issue Support 12
vefatica TYPE /X and Unicode files? Support 0
dcantor LIST /X and TYPE /X give different results Support 20
Juanma Barranquero App Paths of type REG_EXPAND_SZ Support 2
E colorization outside of type Support 7
p.f.moore Documentation tweak for TYPE Support 5

Similar threads