* [9fans] Need help on 'page' command
@ 2002-01-24 3:35 Thomas West
2002-01-27 2:11 ` [9fans] No MBR and mice Matt H
0 siblings, 1 reply; 5+ messages in thread
From: Thomas West @ 2002-01-24 3:35 UTC (permalink / raw)
To: 9fans
I tried to display what I suppose is a jpg file as follows:
gs /n/cdb/JPEGS300/AACROCK1.JPG|page -V
reading through graphics...
fb/cvt2pic: file does not exist
fb/3to1: file does not exist
warning: couldnt read image: file does not exist >>tmp/pageprob.txt
slave wait error: rc 413:|rc 415:cant exec
And here is part of the output of 'string': Part not shown indicates
Photoshop 6.0
strings /n/cdb/JPEGS300/AACROCK1.JPG
267: Photoshop
491: Photo - JPEG
550: AppleMark
'page' examples from the manual seem to display properly
solution/suggestions welcome
-Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* [9fans] No MBR and mice
2002-01-24 3:35 [9fans] Need help on 'page' command Thomas West
@ 2002-01-27 2:11 ` Matt H
2002-01-28 14:25 ` Christian Smith
0 siblings, 1 reply; 5+ messages in thread
From: Matt H @ 2002-01-27 2:11 UTC (permalink / raw)
To: 9fans
Hi,
I've been trying to put an already working plan9 HD onto an older PC MB tonight
It's an 8Gb IDE.
On the newer PC when it boots it reports no MBR on the disk but will still boot into plan9 but on the older one it gave me the "no MBR or I/O Error, press almost any key to reboot" message.
Okay well, I wasn't too bothered about the contents of the HD so I re-installed using the old components. Same result. I've got it booting from floppy but I was wondering if it's worth fiddling with the BIOS?
supplemental :
On my travels I've bought a few 3 button serial mouses but the middle button seems to not work yet to add insult I can't use a KB modifier (ctrl isn't it?) to simulate the 3rd button and pressing 1 & 3 simultaneously fails too. Is there any special voodoo to get button 2 working. One of the mice has a PC/MS switchover button but PC mode just send's it haywire.
cheers
M
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] No MBR and mice
2002-01-27 2:11 ` [9fans] No MBR and mice Matt H
@ 2002-01-28 14:25 ` Christian Smith
0 siblings, 0 replies; 5+ messages in thread
From: Christian Smith @ 2002-01-28 14:25 UTC (permalink / raw)
To: 9fans
On Sun, 27 Jan 2002, Matt H wrote:
>Hi,
>
>
>On my travels I've bought a few 3 button serial mouses but the middle
>button seems to not work yet to add insult I can't use a KB modifier
>(ctrl isn't it?) to simulate the 3rd button and pressing 1 & 3
>simultaneously fails too. Is there any special voodoo to get button 2
>working. One of the mice has a PC/MS switchover button but PC mode just
>send's it haywire.
On some old mice, holding down the left (right?) mouse button while
powering on put the ouse into 3 button mode. There is also an escape
sequence to put these mice into 3 button mode, that for my life escapes
me.
>
>cheers
>
>M
>
--
/"\
\ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
X - AGAINST MS ATTACHMENTS
/ \
^ permalink raw reply [flat|nested] 5+ messages in thread
* [9fans] Need help on 'page' command
@ 2002-01-24 6:11 rob pike
0 siblings, 0 replies; 5+ messages in thread
From: rob pike @ 2002-01-24 6:11 UTC (permalink / raw)
To: 9fans
> I tried to display what I suppose is a jpg file as follows:
>
> gs /n/cdb/JPEGS300/AACROCK1.JPG|page -V
> reading through graphics...
The stdout of gs is not a picture file - it's diagnostic stuff.
(The author was a little new to Unix when he started.)
This will confuse page, which will then fall to vestigial
code and invoke the old fb stuff, which is deprecated.
Around here, where legacy binaries still exist,
As secondary proof,
%% </dev/null gs > x
%% sed 5q x
Aladdin Ghostscript 6.01 (2000-03-17)
Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>
%% page -V < x
reading through graphics...
fb/cvt2pic: can't decode stdin
IN: Can't read header
...
%%
So you see, gs is not the easiest way to display a JPG.
Either use jpg, page, or read up on gs to see how to make
it produce a file, and then run page on that file. It's a
little intricate.
-rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] Need help on 'page' command
@ 2002-01-24 2:20 Russ Cox
0 siblings, 0 replies; 5+ messages in thread
From: Russ Cox @ 2002-01-24 2:20 UTC (permalink / raw)
To: 9fans
See if "jpg /n/cdb/JPEGS300/AACROCK1.JPG" works.
If so, you need to edit the code in /sys/src/cmd/page/gfx.c
to reflect the magic jpeg prefix we're apparently not getting right.
Russ
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-01-28 14:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-24 3:35 [9fans] Need help on 'page' command Thomas West
2002-01-27 2:11 ` [9fans] No MBR and mice Matt H
2002-01-28 14:25 ` Christian Smith
-- strict thread matches above, loose matches on Subject: below --
2002-01-24 6:11 [9fans] Need help on 'page' command rob pike
2002-01-24 2:20 Russ Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).