Hi all, I use cscope often for quick "search and fix" activities :)
cscope lets the user to set up and env var called VIEWER in order to pop a separate window in which to view/edit the file which the selects from the list of files found.
My VIEWER env var has been set for a long time to a shell script which invokes an xterm as follows: $ echo $VIEWER /home/jd/bin/viewer
$ 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.
Thanx for any hints, tips....etc.
On 02May2011 13:14, JD jd1008@gmail.com 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,
On 05/02/11 14:09, Cameron Simpson wrote:
On 02May2011 13:14, JDjd1008@gmail.com 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.
On 05/02/11 14:31, JD wrote:
On 05/02/11 14:09, Cameron Simpson wrote:
On 02May2011 13:14, JDjd1008@gmail.com 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.
I tried this variation: gnome-terminal -x /usr/bin/vi "$*" &
and I do get the terminal, but the terminal has a bright red banner in it with 3 lines: There was an error creating the child process for this terminal Failed to execute child process "/usr/bin/ vi" (No such file or directory)
On the right hand side of the terminal are 2 click buttons (rectangles): Profile Preferences Relaunch
I find it strange that gnome terminal would not recognize the fully qualified pathname of an executable.
On 05/02/11 14:46, JD wrote:
On 05/02/11 14:31, JD wrote:
On 05/02/11 14:09, Cameron Simpson wrote:
On 02May2011 13:14, JDjd1008@gmail.com 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.
I tried this variation: gnome-terminal -x /usr/bin/vi "$*" &
and I do get the terminal, but the terminal has a bright red banner in it with 3 lines: There was an error creating the child process for this terminal Failed to execute child process "/usr/bin/ vi" (No such file or directory)
On the right hand side of the terminal are 2 click buttons (rectangles): Profile Preferences Relaunch
I find it strange that gnome terminal would not recognize the fully qualified pathname of an executable.
Also, $ gnome-terminal -x Failed to parse arguments: Unknown option -x
so -x does not seem to be an acceptable arg for gnome-terminal
On 05/02/11 14:49, JD wrote:
On 05/02/11 14:46, JD wrote:
On 05/02/11 14:31, JD wrote:
On 05/02/11 14:09, Cameron Simpson wrote:
On 02May2011 13:14, JDjd1008@gmail.com 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.
I tried this variation: gnome-terminal -x /usr/bin/vi "$*" &
and I do get the terminal, but the terminal has a bright red banner in it with 3 lines: There was an error creating the child process for this terminal Failed to execute child process "/usr/bin/ vi" (No such file or directory)
On the right hand side of the terminal are 2 click buttons (rectangles): Profile Preferences Relaunch
I find it strange that gnome terminal would not recognize the fully qualified pathname of an executable.
Also, $ gnome-terminal -x Failed to parse arguments: Unknown option -x
so -x does not seem to be an acceptable arg for gnome-terminal
$ gnome-terminal --help Usage: gnome-terminal [OPTION...]
Help Options: -h, --help Show help options --help-all Show all help options --help-terminal Show terminal options --help-window-options Show per-window options --help-terminal-options Show per-terminal options --help-gtk Show GTK+ Options --help-sm-client Show session management options
Application Options: --disable-factory Do not register with the activation nameserver, do not re-use an active terminal --load-config=FILE Load a terminal configuration file --save-config=FILE Save the terminal configuration to a file --display=DISPLAY X display to use
On 3 May 2011 07:49, JD jd1008@gmail.com wrote:
Also, $ gnome-terminal -x Failed to parse arguments: Unknown option -x
so -x does not seem to be an acceptable arg for gnome-terminal
No man page, but:
gnome-terminal --help gnome-terminal --help-all
gnome-terminal -e vi
On Mon, May 2, 2011 at 5:31 PM, JD jd1008@gmail.com wrote:
On 05/02/11 14:09, Cameron Simpson wrote:
On 02May2011 13:14, JDjd1008@gmail.com 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.
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.
You can set up a profile with white bg and black fg and then call it with "--window-with-profile=PROFILENAME]" or "--tab-with-profile=PROFILENAME".
For the command, from the man page:
-e, --command=STRING Execute the argument to this option inside the terminal.
-x, --execute Execute the remainder of the command line inside the terminal.
On 05/02/11 16:18, Tom H wrote:
On Mon, May 2, 2011 at 5:31 PM, JDjd1008@gmail.com wrote:
On 05/02/11 14:09, Cameron Simpson wrote:
On 02May2011 13:14, JDjd1008@gmail.com 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.
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.
You can set up a profile with white bg and black fg and then call it with "--window-with-profile=PROFILENAME]" or "--tab-with-profile=PROFILENAME".
For the command, from the man page:
-e, --command=STRING Execute the argument to this option inside the terminal.
-x, --execute Execute the remainder of the command line inside the terminal.
Thanx a lot. I hope that the Fedora packagers of the gnome-terminal-2.32.0-1.fc14.i686 will not skip over including the man page when building the package.
$ rpm -ql gnome-terminal-2.32.0-1.fc14.i686 /etc/gconf/schemas/gnome-terminal.schemas /usr/bin/gnome-terminal /usr/share/applications/gnome-terminal.desktop /usr/share/doc/gnome-terminal-2.32.0 /usr/share/doc/gnome-terminal-2.32.0/AUTHORS /usr/share/doc/gnome-terminal-2.32.0/COPYING /usr/share/doc/gnome-terminal-2.32.0/NEWS /usr/share/doc/gnome-terminal-2.32.0/README /usr/share/gnome-terminal /usr/share/gnome-terminal/encodings-dialog.ui /usr/share/gnome-terminal/find-dialog.ui /usr/share/gnome-terminal/keybinding-editor.ui /usr/share/gnome-terminal/profile-manager.ui /usr/share/gnome-terminal/profile-new-dialog.ui /usr/share/gnome-terminal/profile-preferences.ui /usr/share/gnome-terminal/skey-challenge.ui /usr/share/gnome-terminal/terminal.about /usr/share/gnome-terminal/terminal.xml /usr/share/gnome/help/gnome-terminal /usr/share/gnome/help/gnome-terminal/C /usr/share/gnome/help/gnome-terminal/C/figures /usr/share/gnome/help/gnome-terminal/C/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/C/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/C/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/C/legal.xml /usr/share/gnome/help/gnome-terminal/bg /usr/share/gnome/help/gnome-terminal/bg/figures /usr/share/gnome/help/gnome-terminal/bg/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/bg/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/bg/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/bg/legal.xml /usr/share/gnome/help/gnome-terminal/ca /usr/share/gnome/help/gnome-terminal/ca/figures /usr/share/gnome/help/gnome-terminal/ca/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/ca/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/ca/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/cs /usr/share/gnome/help/gnome-terminal/cs/figures /usr/share/gnome/help/gnome-terminal/cs/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/cs/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/cs/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/da /usr/share/gnome/help/gnome-terminal/da/figures /usr/share/gnome/help/gnome-terminal/da/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/da/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/da/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/de /usr/share/gnome/help/gnome-terminal/de/figures /usr/share/gnome/help/gnome-terminal/de/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/de/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/de/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/el /usr/share/gnome/help/gnome-terminal/el/figures /usr/share/gnome/help/gnome-terminal/el/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/el/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/el/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/en_GB /usr/share/gnome/help/gnome-terminal/en_GB/figures /usr/share/gnome/help/gnome-terminal/en_GB/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/en_GB/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/en_GB/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/es /usr/share/gnome/help/gnome-terminal/es/figures /usr/share/gnome/help/gnome-terminal/es/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/es/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/es/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/fr /usr/share/gnome/help/gnome-terminal/fr/figures /usr/share/gnome/help/gnome-terminal/fr/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/fr/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/fr/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/it /usr/share/gnome/help/gnome-terminal/it/figures /usr/share/gnome/help/gnome-terminal/it/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/it/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/it/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/ja /usr/share/gnome/help/gnome-terminal/ja/figures /usr/share/gnome/help/gnome-terminal/ja/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/ja/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/ja/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/ja/legal.xml /usr/share/gnome/help/gnome-terminal/ko /usr/share/gnome/help/gnome-terminal/ko/figures /usr/share/gnome/help/gnome-terminal/ko/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/ko/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/ko/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/oc /usr/share/gnome/help/gnome-terminal/oc/figures /usr/share/gnome/help/gnome-terminal/oc/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/oc/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/oc/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/pt_BR /usr/share/gnome/help/gnome-terminal/pt_BR/figures /usr/share/gnome/help/gnome-terminal/pt_BR/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/pt_BR/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/pt_BR/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/ro /usr/share/gnome/help/gnome-terminal/ro/figures /usr/share/gnome/help/gnome-terminal/ro/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/ro/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/ro/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/ro/legal.xml /usr/share/gnome/help/gnome-terminal/ru /usr/share/gnome/help/gnome-terminal/ru/figures /usr/share/gnome/help/gnome-terminal/ru/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/ru/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/ru/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/sv /usr/share/gnome/help/gnome-terminal/sv/figures /usr/share/gnome/help/gnome-terminal/sv/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/sv/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/sv/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/uk /usr/share/gnome/help/gnome-terminal/uk/figures /usr/share/gnome/help/gnome-terminal/uk/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/uk/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/uk/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/zh_CN /usr/share/gnome/help/gnome-terminal/zh_CN/figures /usr/share/gnome/help/gnome-terminal/zh_CN/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/zh_CN/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/zh_CN/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/zh_TW /usr/share/gnome/help/gnome-terminal/zh_TW/figures /usr/share/gnome/help/gnome-terminal/zh_TW/figures/gnome-terminal-default.png /usr/share/gnome/help/gnome-terminal/zh_TW/figures/gnome-terminal-tabbed.png /usr/share/gnome/help/gnome-terminal/zh_TW/gnome-terminal.xml /usr/share/gnome/help/gnome-terminal/zh_TW/legal.xml /usr/share/locale/am/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ar/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/as/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ast/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/az/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/be/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/be@latin/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/bg/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/bn/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/bn_IN/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/br/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/bs/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ca/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ca@valencia/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/cs/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/cy/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/da/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/de/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/dz/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/el/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/en@shaw/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/en_CA/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/en_GB/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/eo/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/es/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/et/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/eu/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/fa/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/fi/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/fr/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/fur/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ga/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/gl/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/gu/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/he/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/hi/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/hr/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/hu/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/hy/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/id/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/it/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ja/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ka/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/kk/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/kn/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ko/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ku/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/lt/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/lv/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/mai/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/mg/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/mk/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ml/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/mn/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/mr/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ms/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/nb/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/nds/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ne/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/nl/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/nn/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/oc/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/or/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/pa/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/pl/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ps/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/pt/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/pt_BR/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ro/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ru/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/rw/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/si/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/sk/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/sl/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/sq/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/sr/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/sr@latin/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/sv/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ta/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/te/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/th/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/tr/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/ug/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/uk/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/vi/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/wa/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/xh/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/zh_CN/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/zh_HK/LC_MESSAGES/gnome-terminal.mo /usr/share/locale/zh_TW/LC_MESSAGES/gnome-terminal.mo /usr/share/omf/gnome-terminal /usr/share/omf/gnome-terminal/gnome-terminal-C.omf /usr/share/omf/gnome-terminal/gnome-terminal-bg.omf /usr/share/omf/gnome-terminal/gnome-terminal-ca.omf /usr/share/omf/gnome-terminal/gnome-terminal-cs.omf /usr/share/omf/gnome-terminal/gnome-terminal-da.omf /usr/share/omf/gnome-terminal/gnome-terminal-de.omf /usr/share/omf/gnome-terminal/gnome-terminal-el.omf /usr/share/omf/gnome-terminal/gnome-terminal-en_GB.omf /usr/share/omf/gnome-terminal/gnome-terminal-es.omf /usr/share/omf/gnome-terminal/gnome-terminal-fr.omf /usr/share/omf/gnome-terminal/gnome-terminal-it.omf /usr/share/omf/gnome-terminal/gnome-terminal-ja.omf /usr/share/omf/gnome-terminal/gnome-terminal-ko.omf /usr/share/omf/gnome-terminal/gnome-terminal-oc.omf /usr/share/omf/gnome-terminal/gnome-terminal-pt_BR.omf /usr/share/omf/gnome-terminal/gnome-terminal-ro.omf /usr/share/omf/gnome-terminal/gnome-terminal-ru.omf /usr/share/omf/gnome-terminal/gnome-terminal-sv.omf /usr/share/omf/gnome-terminal/gnome-terminal-uk.omf /usr/share/omf/gnome-terminal/gnome-terminal-zh_CN.omf /usr/share/omf/gnome-terminal/gnome-terminal-zh_TW.omf
On 02May2011 19:18, Tom H tomh0665@gmail.com wrote: | On Mon, May 2, 2011 at 5:31 PM, JD jd1008@gmail.com wrote: | > On 05/02/11 14:09, Cameron Simpson wrote: | >> 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. | > | > 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. | | You can set up a profile with white bg and black fg and then call it | with "--window-with-profile=PROFILENAME]" or | "--tab-with-profile=PROFILENAME". | | For the command, from the man page: | | -e, --command=STRING | Execute the argument to this option inside the terminal. | | -x, --execute | Execute the remainder of the command line inside the | terminal.
Try the -x variety without the -fg and -bg options. The -x will faithfully preserve your filenames even if they have weird characters in them. Your -e version won't.
Cheers,