[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference unxa::cde

Title:CDE on Digital UNIXonment - CDE
Notice:CDE on Digital UNIX - for CDE on VMS, please see Note 1.3
Moderator:UNXA::SYSTEM
Created:Tue Nov 23 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:660
Total number of notes:2674

653.0. "How can I set window size and font from command line." by NNTPD::"[email protected]" (Joe J. Vlcek) Fri May 23 1997 11:09

I would like to be able to set a dtterm window size and font from the 
command line and not have to use the mouse.  To do what I want I click
on  options -> window size and select the new size then I click
on options -> font and sellect the new font. What I would like is to
be able to type some command at the prompt and have my window size and
font set. 

My guess is there is an escape sequence, command... that I can echo
that will do this for me, but I am guessing here.

Let me know and Thanks in advance. Joe Vlcek
[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
653.1someone taking a lookUNXA::DERZINSKIFri May 23 1997 11:195
Hi 

Your note was forwarded to someone very knowledgeable with dtterm.

John D.
653.2dtterm -geometry 80x36-120-140 -fn 8x13XAPPL::MASINICKBrian Masinick, DTN 381-0013Fri May 23 1997 16:1722
    The answer is very simple:
    
    Dtterm, like xterm, allows for the relatively standard command line
    options, geometry and font, among other options.  To start a new
    dtterm, running your default login procedure:
    
    dtterm -ls -geometry 132x60 -fn 6x13 &
    dtterm -ls -geometry 80x24 -fn 10x20 &
    dtterm -ls -geomety 132x40 -fn fixed &
    dtterm -ls -geomety 132x40 -fn lucidasanstypewriter-10 &
    dtterm -ls -geometry 132x40+0+0
    dtterm -ls -geometry 132x40-120-140
    
    The option -ls means to invoke the login shell.  The geometry spec
    takes X and Y coordinates as the first two numbers, and/or relative
    pixel spacing from the top or bottom of the screen, just like xterm and
    other X applications.  Fonts may be monospaced fonts (I'm not sure how
    proportional fonts would behave, if at all).
    
    I hope this helps you and other curious readers.
    
    Brian   
653.3-geo, or -geometry, but not -geometySMURF::MASINICKBrian Masinick, DTN 381-0013Fri May 23 1997 16:434
    Typos: the argument -geomety *doesn't* work :-)  Always run spell and
    context check on my work.  dtterm -geo 80x24 works fine, FWIW.
    
    -Brian
653.4resizing dttermNNTPD::"[email protected]"Joe VlcekTue May 27 1997 17:248
I must have not worded my question very good. I do not want to create a new
dtterm every time I want a different size dtterm. I want to resize the
current dtterm. I am aware of the flags to the command when starting a
dtterm but I do not want to start a new one I want to resize the current one.
Also I would like to iconify it from the command line too.

Any ideas
[Posted by WWW Notes gateway]
653.5DECCOLM sequenceNNTPD::"[email protected]"Brian W. MasinickTue May 27 1997 19:1217
If you know what the DECCOLM sequence is, you should be in business.  If not,
I can make a reasonable guess that an escape sequence will do what you want,
much as you can do with a script to modify the window icon and title bar.

I do not know these values offhand, but I have access to the sources, so as
soon as I can find the time, I'll check, unless somebody else cares to answer
first.  [I wouldn't mind knowing myself, as I already have scripts to do all
kinds of fun stuff with xterm, dxterm, and dtterm.  Font sizes and geometry
changes from a script, which could be bound to function keys, would be nice].

In the meantime, one partial workaround is to uncomment the following, then
use
F10 and the arrow keys.  That will allow you to keep your hands on the main 
keyboard, without having to touch the mouse.

Brian
[Posted by WWW Notes gateway]
653.6DECCOLM sequenceNNTPD::"[email protected]"Brian W. MasinickTue May 27 1997 19:1322
If you know what the DECCOLM sequence is, you should be in business.  If not,
I can make a reasonable guess that an escape sequence will do what you want,
much as you can do with a script to modify the window icon and title bar.

I do not know these values offhand, but I have access to the sources, so as
soon as I can find the time, I'll check, unless somebody else cares to answer
first.  [I wouldn't mind knowing myself, as I already have scripts to do all
kinds of fun stuff with xterm, dxterm, and dtterm.  Font sizes and geometry
changes from a script, which could be bound to function keys, would be nice].

In the meantime, one partial workaround is to uncomment the following, then
use
F10 and the arrow keys.  That will allow you to keep your hands on the main 
keyboard, without having to touch the mouse:

! These will enable the menu accelerators which will allow F10 to act
! as the menu pulldown and popup accelerator:
!*menu_pulldown.menuAccelerator: <Key>osfMenuBar
!*menu_popup.menuAccelerator: <Key>osfMenu

Brian
[Posted by WWW Notes gateway]