Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enter graphics mode from command line in linux without start x?

620 views
Skip to first unread message

neoedmund

unread,
Jan 4, 2011, 10:20:09 AM1/4/11
to
Maybe it's a newbie question,
It is possible to do this?
for example in command line I type:
# showPicture a.jpg
then the screen shows a.jpg in graphics mode, when i press any key,
the screen return to text mode?

Harald Meyer

unread,
Jan 4, 2011, 4:01:04 PM1/4/11
to
On 01/04/2011 04:20 PM, neoedmund wrote:
> for example in command line I type:
> # showPicture a.jpg
> then the screen shows a.jpg in graphics mode, when i press any key,
> the screen return to text mode?

If you're using a framebuffer you can display pictures and play video
directly on the framebuffer with fbi resp. mplayer, but since you ask
in c.o.l.x I assume you have X up and running on another VT. You can
use chvt to automagically switch VTs in a wrapper script like

#!/bin/sh
export DISPLAY=:0
chvt 8
eog $@
chvt 1


Change the VT numbers to those your system uses. I remember chvt once
required root privileges to run, but on this Ubuntu 10.10 here it doesn't.

Mark Hobley

unread,
Feb 27, 2011, 6:41:54 AM2/27/11
to

There is an image viewer that uses svgalib that does just that. I can't
remember what it was called though. You could start looking through package
lists to find one that uses svgalib as a dependency.

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

Curt

unread,
Feb 27, 2011, 1:05:38 PM2/27/11
to
On 2011-02-27, Mark Hobley <markh...@yahoo.donottypethisbit.co> wrote:
>
> There is an image viewer that uses svgalib that does just that. I can't
> remember what it was called though. You could start looking through package
> lists to find one that uses svgalib as a dependency.

zgv

0 new messages