Re: xterm vs gnome terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/02/11 14:09, Cameron Simpson wrote:
> On 02May2011 13:14, JD<jd1008@xxxxxxxxx>  wrote:
> | $ cat /home/jd/bin/viewer
> | #!/bin/sh
> | xterm -fn 12x24 -bg white -fg black -e vi $*&
> |
> | How can I replace xterm with gnome-terminal?
> |
> | I tried to simply change xterm to gnome-terminal
> | but gnome-terminal does not recognize the args
> | and never executes vi on the file selected.
>
> I discovered to my horror several years ago that gnome-terminal wants to
> use "-x" where xterm and most other terminals use "-e".
>
> Have a look at "man gnome-terminal" for specifics.
>
> But try this:
>
>    gnome-terminal -bg white -fg black -x vi ${1+"$@"}&
>
> ALso note the change of $* - your origial script will break if you get files
> with whitespec in their names.
>
> Cheers,
When I tried it I got this message:

Failed to parse arguments: Unknown option -bg

Also, there is no man page for gnome-terminal on my F14.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux