Re: Lynx - stop viewing binary files as text

2003-05-27 Thread Paul
OMG, youre a savior :)

Ive been trying to dink with this for a few weeks now,
repeatedly askin about it in linux channels on irc,
and everyone is like man lynx, and i knew it wasnt
something with that..  Heres the line in /etc/mailcap
that was causing the error

application/*; less '%s'; needsterminal

Once again thanks for the great help  :)

-paul

--- Thomas Dickey [EMAIL PROTECTED] wrote:
 On Fri, May 23, 2003 at 12:30:14AM +0200, Paul
 wrote:
  Actually its with every single url out there.  I
 have
  2 boxex.
  
  box1  lynx
  http://www.linkrox.net/~god-emperor/ss-imdb.zip
  
  outputs a cmd stating D)ownload C)ancel
  
  box2 lynx
  http://www.linkrox.net/~god-emperor/ss-imdb.zip
  
  outputs /tmp/8t73Df/L977-856TMP.zip may be a
 binary
  file.  See it anyway?
 
 look at your mailcap - it looks as if less is
 being invoked for the given
 type.
 
 -- 
 Thomas E. Dickey [EMAIL PROTECTED]
 http://invisible-island.net
 ftp://invisible-island.net


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Lynx - stop viewing binary files as text

2003-05-27 Thread Jamin W. Collins
On Tue, May 27, 2003 at 04:27:19PM -0700, Paul wrote:

 Heres the line in /etc/mailcap that was causing the error
 
 application/*; less '%s'; needsterminal

That question needs to be removed from the less installation.  Why oh
why would anyone ever want to install less as the default application
handler?

-- 
Jamin W. Collins

This is the typical unix way of doing things: you string together lots
of very specific tools to accomplish larger tasks. -- Vineet Kumar


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Lynx - stop viewing binary files as text

2003-05-27 Thread Colin Watson
On Tue, May 27, 2003 at 04:27:19PM -0700, Paul wrote:
 OMG, youre a savior :)
 
 Ive been trying to dink with this for a few weeks now, repeatedly
 askin about it in linux channels on irc, and everyone is like man
 lynx, and i knew it wasnt something with that..  Heres the line in
 /etc/mailcap that was causing the error
 
 application/*; less '%s'; needsterminal

'dpkg-reconfigure less' asks whether you want that there or not. There
were a fair number of complaints about this behaviour, and it was fixed
in version 381-1 in testing/unstable.

Cheers,

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Lynx - stop viewing binary files as text

2003-05-27 Thread Thomas E. Dickey
On Tue, 27 May 2003, Paul wrote:

 OMG, youre a savior :)

 Ive been trying to dink with this for a few weeks now,
 repeatedly askin about it in linux channels on irc,
 and everyone is like man lynx, and i knew it wasnt
 something with that..  Heres the line in /etc/mailcap
 that was causing the error

 application/*; less '%s'; needsterminal

 Once again thanks for the great help  :)

no problem

-- 
T.E.Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OFF: Re: viewing binary files

1998-03-16 Thread Daniel Martin at cush
Brandon Mitchell [EMAIL PROTECTED] writes:

 I often make a script called my.reset that simply echo's ^O (letter o).
 If this attachment worked right, then you should be able to use it without
 any problem.  Fyi, ^O puts the terminal back into text mode which is the
 only problem I've ever had after reading a binary.

Um... That's not _quite_ correct.  Ctrl/O shifts to the primary
character set, which is usually the right one.  (The escape sequences
necessary to change the primary char. set are rather unlikely to
appear in a binary file, but they can happen - especially if, for
example, the binary was of a program that did a lot of screen
manipulation)  I always go with outputting esc-c, which resets the
terminal (and ends up clearing the screen too; oh well).

I think the keyboard HOWTO has all sorts of information like this.

(The reason it's so common to need the ^O fix is that to get the
terminal to switch to the secondary character set (which starts out on 
well-behaved terminals as the graphics set) one only needs to send the 
terminal a ^N; assuming characters are evenly distributed in a binary, 
it gives a binary file about a one-in-two chance of leaving the screen 
in a messed-up state).


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


Re: OFF: Re: viewing binary files

1998-03-15 Thread Carey Evans
Justin Liu [EMAIL PROTECTED] writes:

 I know this is unrelated, but does anyone know how to do the same thing
 under other Unices?  More specifically SunOS/Solaris?

Some Unices will have reset themselves.

Have a look at the tset man page.  You might also be able to use stty
sane followed by tput reset.  If things are really screwed up, you
might need to type ^Jstty sane^J, where ^J is control-J.

-- 
 Carey Evans  http://home.clear.net.nz/pages/c.evans/

  GNU GPL: The Source will be with you... always.


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


Re: OFF: Re: viewing binary files

1998-03-15 Thread Brandon Mitchell
On 15 Mar 1998, Carey Evans wrote:

 Justin Liu [EMAIL PROTECTED] writes:
 
  I know this is unrelated, but does anyone know how to do the same thing
  under other Unices?  More specifically SunOS/Solaris?
 
 Some Unices will have reset themselves.
 
 Have a look at the tset man page.  You might also be able to use stty
 sane followed by tput reset.  If things are really screwed up, you
 might need to type ^Jstty sane^J, where ^J is control-J.

I often make a script called my.reset that simply echo's ^O (letter o).
If this attachment worked right, then you should be able to use it without
any problem.  Fyi, ^O puts the terminal back into text mode which is the
only problem I've ever had after reading a binary.

Brandon

-
Brandon Mitchell [EMAIL PROTECTED]   We all know linux is great... it
PGP: finger -l [EMAIL PROTECTED]  does infinite loops in 5 seconds
Phone: (757) 221-4847  --Linus Torvalds
#!/bin/sh
echo 



viewing binary files

1998-03-12 Thread Paul McDermott
hello everyone,  someone tries to view a binary file how do you reset the
console.  This happened on the console.  Thank you in advance.

--
Paul McDermott
The Computer Braille Facility
The University of Western Ontario
University Community Centre 215
London, Ontario N6A 3K7
Phone:   (519) 661-3061
Email:   [EMAIL PROTECTED] 
Web Address: http://www.braille.uwo.ca/~paul


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


Re: viewing binary files

1998-03-12 Thread Samuli Suonpaa
Paul McDermott [EMAIL PROTECTED] writes:
 hello everyone,  someone tries to view a binary file how do you reset the
 console.  This happened on the console.  Thank you in advance.

Issue command reset.

Suonpää...


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


Re: viewing binary files

1998-03-12 Thread servis
On 12 Mar, Paul McDermott wrote:
 hello everyone,  someone tries to view a binary file how do you reset the
 console.  This happened on the console.  Thank you in advance.
 

Type reset (w/o quotes) on the keyboard without regard for what the
screen is showing and hit return.

Brian 



--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


OFF: Re: viewing binary files

1998-03-12 Thread Justin Liu
I know this is unrelated, but does anyone know how to do the same thing
under other Unices?  More specifically SunOS/Solaris?

Thanks,

- justin

 On 12 Mar, Paul McDermott wrote:
  hello everyone,  someone tries to view a binary file how do you reset the
  console.  This happened on the console.  Thank you in advance.
  
 
 Type reset (w/o quotes) on the keyboard without regard for what the
 screen is showing and hit return.


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]