LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2003, 01:26 AM   #1
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Changing size of programs executed in xterm


Hi. I was wondering if anyone knew how to change the size of a console program run from X. Basically I would like to be able to launch a console program (like vi, nano, giftcurs, whatever) from the GUI but have it open a window of a size I specify for me. An example is when you start xterm you can specify the "-geometry" option. I was wondering if anything like that was possible when starting any console program (seeing as it runs in xterm). Maybe there's a script to create an xterm and execute a command in it. If so, how do I write it? Thanks in advance.

PS: yes I do know that I can just resize the xterm window manually and then type thre command in but I wanted something automatic.

Last edited by adz; 09-14-2003 at 01:28 AM.
 
Old 09-14-2003, 04:41 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I'm pretty sure you can specify the size of any application by doing something like:

aterm -g 200x100
 
Old 09-14-2003, 05:46 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Original Poster
Rep: Reputation: 53
Yes but I'm not running a *term directly. I'm running a program from a menu and I was hoping to get the launching script to set the size of the window automatically.
 
Old 09-14-2003, 06:31 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
'All' console programs recognize the -geomtry option. Even some GUI based progs accept them.

A few examples of which I'm sure they work:

xterm +sb -fg black -bg gray -fn 8x13 -geometry 141x73-0+0 -e usr/bin/slrn -f .jnewsrc --spool

opera -geometry 1182x957+12+0

compupic -geometry 1390x959+0+0

I've got these, among others, in my menu's.
 
Old 09-14-2003, 08:54 AM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Original Poster
Rep: Reputation: 53
This is what happens when I run the program giFTcurs with the -geometry option:

adz@dom:~$ giFTcurs -geometry 100x100-0-0
giFTcurs: invalid option -- g
giFTcurs: invalid option -- e
giFTcurs: invalid option -- o
giFTcurs: invalid option -- m
giFTcurs: invalid option -- e
giFTcurs: invalid option -- t
giFTcurs: invalid option -- r
giFTcurs: invalid option -- y
giFTcurs - curses frontend to giFT
Usage: giFTcurs [OPTION]...
Options:
-a, --stickchars use 7-bit chars for line drawing
-h, --help display this help and exit
-V, --version output version information and exit
-v, --verbose flood stderr with debugging info
-s, --server=hostort set server address [127.0.0.1:1213]
-p, --profile=name select what profile to use [adz]
-d, --nomouse don't use the mouse

No luck I'm afraid...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xterm font size onelung02 Slackware 4 03-28-2005 04:34 PM
Increase of fonts size in xterm macondo Debian 3 11-03-2004 08:46 AM
Xterm font size liguorir Linux - Software 3 01-10-2004 08:44 AM
Xterm Font Size In Aix liguorir Linux - Software 1 10-23-2003 02:00 PM
xterm font size and type centr0 Linux - Software 4 05-24-2003 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration