realbasic-nug
[Top] [All Lists]

Re: Shell returns garbage characters

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Shell returns garbage characters
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Wed, 28 Jun 2006 13:09:28 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <CC321CB7-7ACB-4A8A-92BD-412A1EEB9D51 at gsco dot de> <4D51D79B-0388-4067-8928-0FE1A957172D at mac dot com>

On Jun 28, 2006, at 12:50 PM, Stefan P. wrote:


Save all characters to a text file and open it using a hex/text editor. I suppose, your data - the asterisks - is inside but you won't see it on
screen, since the control chars do 'fun stuff'.

A shell process might switch to terminal mode, if it identifies the caller of an app as an interactive shell process connected to a capable terminal.
In your case, the process should NOT switch to terminal mode.

Don't know, are actually generated, but I'd google for VT-52 or something like that.

Here is what shows up, when I do an erase of an empty DVD-RW - output of
drutil redirected to file and opened using vi:

>>>
RW Eraser

Preparing... done.^H ^H^H ^H^H ^H^H ^H^H ^H [**********************************************************] 100% ^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^Hdone.^M ^MErase completed.
<<<

Thus, drutil is oddly written :-(

That's a common trick in older console apps to display a progress bar of sorts
^H is the backspace character
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>