xterm_news.txt

Strictly speaking, "xterm" is a terminal-emulation program that runs
within the X Windows environment.  As with most X programs, there are
many possible adjustments to its behavior.

The information archived here also mentions similar and related programs
as well, such as "dtterm".

 ..............................................................................

Some information on using mice with X Windows is found in:

    http://www.cs.utk.edu/~shuford/terminal/mouse_news.txt

Some information on keyboards used with X Windows for Unix/Linux is found in:

    http://www.cs.utk.edu/~shuford/terminal/unix_workstation_kbd_news.txt

 //////////////////////////////////////////////////////////////////////////////

HINT For UNIX:

| Q: anybody got a one-line command line script that will set your 
|    display for remote usage without having to go through the 
|    who | grep uid and setenv commands?

# for C shell

setenv DISPLAY `who am i | cut -d '(' -f 2 | cut -d ')' -f 1`:0.0

# for Korn shell (but not for historic Bourne shell)

export DISPLAY=`who am i | cut -d '(' -f 2 | cut -d ')' -f 1`:0.0

 //////////////////////////////////////////////////////////////////////////////

Path: cs.utk.edu!gatech!howland.reston.ans.net!torn!watserv2.uwaterloo.ca
      !newshost.uwo.ca!john
From: john@phobos.sscl.uwo.ca (John Tucker)
Newsgroups: comp.sys.sun.apps,comp.terminals
Subject: Re: Problems with XTerm and Sun Type 5 keyboard
Date: 9 Dec 1994 14:13:18 GMT
Organization: Social Science Computing Lab
Message-ID: <3c9olu$961@falcon.ccs.uwo.ca>
References: <3c7rfo$l3n@cliffy.lfwc.lockheed.com>
NNTP-Posting-Host: phobos.sscl.uwo.ca


According to 'xev', 
	F11 generates keycode 16
	F12 generates keycode 18

so
	xmodmap -e 'keycode 16 = <some keysym>'
	xmodmap -e 'keycode 18 = <some keysym>'
should do the trick

NB I am using the X11R5 Xsun X-server, so your mileage may vary
with xnews.

-- 
jtucker@uwo.ca
    "Sometimes you're the windshield - sometimes you're the bug,
     Sometimes  you're the Louisville Slugger - sometimes you're the ball"
			-Mark Knopfler

 //////////////////////////////////////////////////////////////////////////////

Path: cs.utk.edu!cssun.mathcs.emory.edu!hobbes.cc.uga.edu
      !news-feed-1.peachnet.edu!gatech!swrinde!cs.utexas.edu!news.tamu.edu
      !eesun2.tamu.edu!iskandar
Newsgroups: comp.unix.dos-under-unix,comp.terminals
Organization: Department of Electrical Engineering, Texas A&M University
Message-ID: <3o1ae2$e7a@news.tamu.edu>
References: <1995Apr30.184306.5832@lamont.ldgo.columbia.edu>
Date: 1 May 1995 00:36:18 GMT
From: iskandar@eesun2.tamu.edu (Alexandre Khalil)
Subject: Re: X-Terminal for Win or Dos


In article <1995Apr30.184306.5832@lamont.ldgo.columbia.edu>,
Aaron Johns  <amjohns@capaccess.org> wrote:
> Does anybody know of any freeware or shareware X-Terminal
> software for either MS-DOS
> or Win3.1x.  I have an Indigo-2 that I would like to connect to and use
> my SGI graphics stuff from a P-90, but due to certain restrictions, I
> cannot run LINUX or FreeBSD or stuff like that.

>Thanks

  There is xwindemo that should be on ftp.cica.indiana.edu either
  in demo, in x or in winsock

alex

 //////////////////////////////////////////////////////////////////////////////

As of mid-2001, there is Cygwin/XFree86 X Server, a free (GPL) Windows option.

    http://xfree86.cygwin.com/


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.windows.x.apps, comp.windows.x, comp.unix.solaris
Message-ID: <bmh1ie$c3u$2@srv38.cas.org>
References: <bm3s96$mvi$1@srv38.cas.org>
Organization: CAS, Columbus, Ohio
Date: 14 Oct 2003 14:34:54 GMT
From: lvirden@yahoo.com
Subject: Re: Searching for some xterm help


According to  <lvirden@yahoo.com>:
:
:I am seeking some insight on defining an XTerm keyboard mapping problem.
:
:The problem is this - xmodmap -pk reports the following:
:
:     81         0xff50 (Home)   
:     84         0xff57 (End)    
:    102         0xffd8 (F27)    0xffd8 (F27)    0xffb7 (KP_7)   0xff50 (Home)
:     96         0xffde (F33)    0xffde (F33)    0xffb1 (KP_1)   0xff57 (End)
:
:I want to know what has to be done so that keyboard translations for
:F27 and F33 appear on the keyboard.  Right now, it appears that the
:0xff50 and 0xff57 keysyms are 'overriding' the other keysyms translation
:by default.


The solution to this was in the MIT X documentation.

The xterm translations are set from more specific to less specific.
By the time that the translations for F27 and F33 were reached, the
definitions for Home and End had already been set.  So since something
is assigning the Home and End keysyms to both pairs of keys, the first
translation took precedence over the second.

The solution was to define the F27 and F33 translations before the Home
and End ones--then I got unique sequences for the two pairs of keys
in xterm.

-- 
<URL: http://wiki.tcl.tk/ > In God we trust.
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirden@yahoo.com > <URL: http://www.purl.org/NET/lvirden/ >


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.dos-under-unix,comp.terminals
Path: cs.utk.edu!gatech!news.mathworks.com!uunet!iglou!root
From: root@myhost.subdomain.domain (black majik)
Subject: Re: X-Terminal for Win or Dos
Message-ID: <D7w0Br.H5B@iglou.com>
Followup-To: comp.unix.dos-under-unix,comp.terminals
Sender: news@iglou.com (News Administrator)
Organization: String to put in the Organization Header
X-Newsreader: TIN [version 1.2 PL2]
References: <1995Apr30.184306.5832@lamont.ldgo.columbia.edu>
Date: Mon, 1 May 1995 06:50:15 GMT
Lines: 16

Aaron Johns (amjohns@capaccess.org) wrote:
: Does anybody know of any freeware or shareware X-Terminal software
: for either MS-DOS
: or Win3.1x.  I have an Indigo-2 that I would like to connect to and use
: my SGI graphics stuff from a P-90, but due to certain restrictions, I cannot
: run LINUX or FreeBSD or stuff like that.

: Thank

you will not be able to run many of your apps anyway, since whatever server
you do find will not be GL compatible..

only standard Xclients, not GL clients, will be able to run remotely..
Perhaps this may work with NT, since suposedly Microsoft kludged some
GL support in it.

 //////////////////////////////////////////////////////////////////////////////

Path: cs.utk.edu!stc06.ctd.ornl.gov!fnnews.fnal.gov!uwm.edu!vixen.cso.uiuc.edu
     !howland.reston.ans.net!news.sprintlink.net!news.bluesky.net
     !news.mathworks.com!transfer.stratus.com!xylogics.com!Xylogics.COM!carlson
From: carlson@Xylogics.COM (James Carlson)
Newsgroups: comp.terminals
Subject: Re: PWD shows on the title of the xterm, how??
Date: 11 May 1995 16:00:01 GMT
Organization: Xylogics Incorporated
Lines: 31
Distribution: world
Message-ID: <3otca1$8iq@newhub.xylogics.com>
References: <3ot6t0$gfg@tpd.dsccc.com>
Reply-To: carlson@xylogics.com
NNTP-Posting-Host: newhub.xylogics.com

In article <3ot6t0$gfg@tpd.dsccc.com>,
 chsu@imtn.dsccc.com (Charlie Hsu) writes:
|> Hi!
|> 
|> I would like to know how to let your current working directory shows on the
|> title of your xterm. I have seen one person did that long time ago. He
|> seemed to send a control sequence to the xterm so that everytime he 'cd' to
|> a new directory, his xterm title bar shows that directory pathname.
|> 
|> My environment is Sun SPARC 5 OpenWindows with
|> OpenLookVisualWindowManager (olvwm). I use ksh in the xterm.

The magic command is a text string you have to echo out.  The string is:

	ESC ] 2 ; <your-string-here> BEL

(I've added spaces for readability.)

To put this into ksh, set up an alias that does an echo on that.  I use
something that looks like (for csh):

	alias header echo -n "^[]2;\!*^G"

Where ^[ is actually an ESC character and ^G is a CTRL-G (BEL).

(I don't know the ksh equivalent.)

---
James Carlson <carlson@xylogics.com>            Tel:  +1 617 272 8140
Annex Software Support / Xylogics, Inc.               +1 800 225 3317
53 Third Avenue / Burlington MA  01803-4491     Fax:  +1 617 272 2618


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.misc,comp.unix.questions,comp.unix.admin,comp.unix.shell
Path: utkcs2!stc06.ctd.ornl.gov!fnnews.fnal.gov!uwm.edu!nntp.primenet.com
      !news.mathworks.com!enews.sgi.com!news.sgi.com!news.tamu.edu
      !news.utdallas.edu!nrchh45.rich.nt.com!ferret.ocunix.on.ca!resurrect
Date: 20 Sep 1996 20:56:05 GMT
From: q8e192@ugrad.cs.ubc.ca (Henry Avatar Chan)
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Message-ID: <R.51v0d5$g80@nnrp.cs.ubc.ca>
References: <50n5su$22m@magus.cs.utah.edu> <3230A5F4.19C4@pacbell.com>
Subject: Re: prompt in xterm title

Charles LaRosse (cxlaros@pacbell.com) wrote:
:
: Today I saw an xterm that would change the title as the user's prompt
: changed.  I don't know how to do this and I thought that maybe someone
: here could tell me.   Thank-you


This is what I get when I do a man on tcsh:

      Tcsh now supports a special alias, "cwdcmd", which if set holds a
      command that will be executed after changing the value of $cwd.  For
      example, if the user is running on an X window system xterm(1), and a
      reparenting window manager that supports title bars such as twm(1) and
      has done:

            > alias cwdcmd  'echo -n "^[]2;${HOST}:$cwd ^G"'

      then the shell will change the title of the running xterm(1) to be the
      name of the host, a colon, and the full current working directory. A
      more fancy way to do that is:

            > alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd^G^[]1;${HOST}^G"'

      This will put the hostname and working directory on the title bar but
      only the hostname in the icon manager menu.  Note that if a user
      defines cwdcmd to contain a cd, pushd, or popd, command, an infinite
      loop may result.  In this case, it is the author's opinion that said
      user will get what he deserves.


I hope this helps,
Henry

 .. ..  .. ..  .. ..  .. ..  .. ..  .. ..  .. ..  .. ..  .. ..  .. ..  .. ..

SVR4 users can also try:

    alias cwdcmd   'printf "\0033]2;${HOST}:$cwd\0007\0033]1;${HOST}\0007"'

 //////////////////////////////////////////////////////////////////////////////


Path: cs.utk.edu!stc06.ctd.ornl.gov!fnnews.fnal.gov!lll-winken.llnl.gov!hookup
     !usenet.eel.ufl.edu!news-feed-1.peachnet.edu!news.duke.edu
     !news.mathworks.com!gatech!howland.reston.ans.net!xlink.net!xlink100
     !ka.sub.net!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de
     !news.belwue.de!aixterm8.urz.uni-heidelberg.de!bk1
Newsgroups: comp.emacs,comp.terminals
Message-ID: <3qfk5d$dvl@news.belwue.de>
References: <9505291700.AA15928@xenon.EE.McGill.CA>
Organization: =?ISO-8859-1?Q?Universit=E4t_Heidelberg,_Deutschland?=
Date: 30 May 1995 17:20:45 GMT
From: bk1@aixterm8.urz.uni-heidelberg.de (Karl Brodowsky)
Subject: Use ESC-prefix instead of Meta-key
         (Re: [Q]: how to get a Meta key in xterm?)

Cristi Cocosco <crisco@ee.mcgill.ca> schrieb:

| I run _emacs_ (non-X) in an xterm window, on a NCD/Motorola X-Terminal,
| connected to a net of HP9000 servers. I haven't figured out a way to
| get a "`Meta"' key action in emacs for the "`Alt"' keys I have on my kbd
| (similar layout with the PC one, except the swaped Caps and Ctrl-Left).

You can use ESCas prefix instead of a meta key.  If you use
8-bit-characters this is what you have to do in an xterm, since Meta
would add a high bit and make M-d and  (a-umlaut) undistinguishable.
This problem has been solved in a neat way for Linux, where the
alt-key produces exactly this ESC prefix and thus works well even if
8-bit-characters are used.  I don't see any real advantage in using
the meta-key instead of the ESC-prefix though.

-- 
Karl Brodowsky <bk1@ix.urz.uni-heidelberg.de> (Mime willkommen)
##emacs19.22##	##konvers0.911##
##asc2iso0.526##	##tinversion1.2-latin1PL2## 
## :-) Version 224 ##	##AIX(Versionsangabeverweigert)##


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.emacs,comp.terminals
Path: cs.utk.edu!gatech!news.sprintlink.net!EU.net!Germany.EU.net
      !Dortmund.Germany.EU.net!Informatik.Uni-Dortmund.DE!news
Organization: University of Dortmund, Germany
Message-ID: <vaf7n79gooc.fsf@dusty.informatik.uni-dortmund.de>
References: <9505291700.AA15928@xenon.EE.McGill.CA>
Reply-To: Kai Grossjohann <grossjoh@ls6.informatik.uni-dortmund.de>
NNTP-Posting-Host: dusty.informatik.uni-dortmund.de
In-reply-to: crisco@ee.mcgill.ca's message of 29 May 1995 12:01:22 -0500
To: crisco@ee.mcgill.ca (Cristi Cocosco)
X-Newsreader: (ding) Gnus v0.77
Date: 30 May 1995 08:49:55 +0200
From: grossjoh@dusty.informatik.uni-dortmund.de (Kai Grossjohann)
Subject: Re: [Q]: how to get a Meta key in xterm?


>>>>> "Cristi" == Cristi Cocosco <crisco@ee.mcgill.ca> writes:

  Cristi> Hello, I run _emacs_ (non-X) in an xterm window, on a
  Cristi> NCD/Motorola X-Terminal, connected to a net of HP9000
  Cristi> servers. I haven't figured out a way to get a "Meta" key
  Cristi> action in emacs for the "Alt" keys I have on my kbd (similar
  Cristi> layout with the PC one, except the swaped Caps and
  Cristi> Ctrl-Left).

I suspect your xterm is `eating' the Alt thing.  You can configure
xterm so that M-x is transformed to ESC x before being sent to the
program.  I think it's the eightBitInput resource.

hth,
        \kai{}
--

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.emacs,comp.terminals
Path: cs.utk.edu!gatech!swrinde!cs.utexas.edu!convex!camelot.dsccc.com
      !sun001.spd.dsccc.com!spd.dsccc.com!kgallagh
NNTP-Posting-Host: @hpap102.spd.dsccc.com
Organization: DSC Communications Corporation, Plano, Texas USA
Message-ID: <3qih45$847@sun001.spd.dsccc.com>
References: <9505291700.AA15928@xenon.ee.mcgill.ca>
Date: 31 May 1995 19:47:17 GMT
From: kgallagh@spd.dsccc.com (Kevin Gallagher)
Subject: Re: [Q]: how to get a Meta key in xterm?


In article <9505291700.AA15928@xenon.ee.mcgill.ca>,
Cristi Cocosco <crisco@ee.mcgill.ca> wrote:
>
> I run _emacs_ (non-X) in an xterm window, on a NCD/Motorola X-Terminal,
> connected to a net of HP9000 servers. I haven't figured out a way to
> get a "Meta" key action in emacs for the "Alt" keys I have on my kbd
> (similar layout with the PC one, except the swaped Caps and Ctrl-Left).


An xterm has support for 8-bit character input and output but I suspect the
shell you are using is stripping off the high bit from input handed to it from
the xterm process BEFORE it passes it on to emacs.  To get around this you
need to tell xterm to convert Meta characters to two-character escape
sequences which emacs will interpret as if they were Meta characters.  Here's
the appropriate X resource description from the xterm man page:

     eightBitInput (class EightBitInput)
             If true, Meta characters input from the keyboard are presented
             as a single character with the eighth bit turned on.  If
             false, Meta characters are converted into a two-character
             sequence with the character itself preceded by ESC.  The
             default is ``true.''

Just set is as follows:

  XTerm*VT100.eightBitInput:	false

in your .Xdefaults file (or equivalent file).

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.vms
Path: cs.utk.edu!gatech!howland.reston.ans.net!tank.news.pipex.net!pipex
      !oleane!univ-lyon1.fr!ws41.cnusc.fr!unix13.u-3mrs.fr
      !lasma5.astrsp-mrs.fr!vibert
Organization: Laboratoire d'Astronomie Spatiale, marseille France
Lines: 33
Distribution: world
Message-ID: <4247qc$8t0@unix13.u-3mrs.fr>
References: <144543@cup.portal.com>
Reply-To: vibert@astrsp-mrs.fr
Date: 31 Aug 1995 11:52:44 GMT
From: vibert@lasma5.astrsp-mrs.fr (Didier Vibert)
Subject: Re: Q: Add DO and KEYPAD MINUS to AlphaStation keyboard?

In article <144543@cup.portal.com>, Chris_F_Chiesa@cup.portal.com writes:
|>
|>I figure it should be relatively straightforward to customize either the
|>DECterm emulator, or the overall DW/Motif environment, so that some other,
|>currently "dead or useless" key 
|>gets interpreted by VMS as the "Do," "Keypad 
|>Minus," "<", and ">" keypresses -- but I lack experience, documentation, 
|>and time, and am wondering if some kind soul out there who's got this 
|>stuff at his/her fingertips could drop me a line (here -or- via e-mail)
|>about the how-to's.
|>

Yes there is a software to do that called "xkeycaps".
It enables you to redefine all the keypresses of your keyboard
and handles a lot of common keyboards.

you can find it at :

    ftp://axp.psl.ku.dk/decwindows
    ftp://ftp2.cnam.fr/decwindows
    ftp://ftp.et.tudelft.nl/decwindows
    ftp://ftp.ctrl-c.liu.se/decwindows
    http://axp616.gsi.de:8080/wwwar/cena/decwindows/cena.html

regards.
-- 
                                                           '''''              
  +------------------------/    ____ ____                 ( O O )             
 / Didier Vibert          / *  /   // *  \--C-N-R-S------m---U---m----------+  
/ (vibert@astrsp-mrs.fr) /  --*-- /  \     Laboratoire d'Astronomie Spatiale \
 tel  91.05.59.00       *____/   /____/   traverse du siphon, BP 8           /
fax  91.66.18.55                         13376 marseille cedex 12, FRANCE   / 
---------------------------------------------------------------------------+  

 //////////////////////////////////////////////////////////////////////////////

Path: cs.utk.edu!gaia.ns.utk.edu!FOTOTEC2.RMT.UTK.EDU!bobj
From: bobj@utk.edu (Bob Johnson)
Newsgroups: comp.sys.mac.apps,comp.terminals,comp.emulators.misc,
            comp.graphics.misc,comp.misc,comp.windows.x.apps,
            comp.protocols.appletalk,comp.sys.mac.graphics,comp.sys.misc
Subject: Re: X-Window emulator for P.C.'s
Date: Wed, 27 Sep 1995 22:45:23 GMT
Organization: Biology Services Facility
Message-ID: <bobj.150.3069D403@utk.edu>
References: <43bsi6$ccl@ixnews2.ix.netcom.com> <43rgnv$9gi@m1.cs.man.ac.uk>
            <446l5v$h4v@paperboy.RND.Softimage.COM>
NNTP-Posting-Host: fototec2.rmt.utk.edu
X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #1]

<clementc@CS.Softimage.COM> writes:

>But if you really need to run MS-Windows, there is an emulator call: "Exceed" 
>or>something like that. There is even one version that exist for modem! 
>(Sorry for not>being more precise!)

>They are other X emulator too! (but I don't their name...!) :-(
>-- 

Hummingbird's "eXceed" does a very good job but is a little pricey. If
you want a freeware version from these folks try to get "xwindemo.exe"
from some of the FTP sites around. If anybody is interested and can't
find it, contact me and I'll try to post some more info on a site. The
version I have may be outdated but does a good job over modem, ISDN,
or Ethernet. Be advised though that X over a modem can be very slow
indeed. I don't even use it much with my ISDN. The commercial packages
like "eXceed" and X-link are probably faster though.

The company info for "xwindemo" is :

****************************************************
*                 --- NOTE ---                     *
*   If you need help, email support@starnet.com    *
****************************************************
----------------------------------------------------------------
George Brennan			e-mail:	   george@starnet.com
Dick Montgomery			e-mail:    dick@starnet.com
StarNet Communications		FAX:	   1-408-739-0936
550 Lakeside Dr. Ste. 3		Voice:	   1-408-739-0881
Sunnyvale, Ca.  94086

===========================================================
 Bob Johnson                                                                
 Computer Programmer/Specialist                 
 Biology Services Facility                        
 University of Tennessee  /////////  ////////   //////////     
 123 Austin Peay Bldg.   ///    ///  ///       ///             
 Knoxville Tn 37996     /////////     ///     ///////        
 615.974.4219          ///     ///     ///   ///          
 bobj@utk.edu         ///////////  //////// ///    
                                  
"Networking and Imaging for the Life Sciences"
===========================================================


 //////////////////////////////////////////////////////////////////////////////

Path: cs.utk.edu!gatech!newsfeed.internetmci.com!news.exodus.net!aimnet.com
      !news2.aimnet.com!usenet
From: Michael Bennett <mbennett@commonground.com>
Newsgroups: comp.unix.solaris,comp.unix.sys5.r4,comp.editors,comp.terminals
Subject: Re: vi doesn't restore the terminal (text) in Solaris 2.4
Date: Tue, 06 Feb 1996 01:47:41 -0800
Organization: Common Ground Software, Inc.
Message-ID: <311723BD.1985@commonground.com>
References: <310A3956.23B0@commonground.com> <4ei1uh$re4@flonk.uk.sun.com> 
            <4elov0$2q5@kodak.rdcs.Kodak.COM>
NNTP-Posting-Host: dial-sf1-2.iway.aimnet.com
To: Kevin C Scott <scott@image.Kodak.COM>
CC: mbennett@eros.commonground.com

Kevin C Scott wrote:
>                                         I'd like to ask a
> related question about terminal configuration on Sun systems
> (both SunOS and Solaris).  It seems that whenever the scrollbar
> is active, programs are unable to send out escape sequences to
> modify the contents of the screen.  For example, when using
> tcsh with scrolling enabled, it is seemingly impossible to
> use the up/down arrow keys to recall previous commands.  Also,
> when the scrollbar is active, and I use less to view a file
> that happens to be smaller than a screenful, the whole file
> flips by instantly and then is immediately erased.  Is there
> some configuration trick that will allow simultaneously having
> the scrollbar active and allowing programs to send out escape
> codes to edit the text on the screen?  Having such a capability
> would make the scrollbar much more useful than it currently is.

As another reply pointed out, Sun's cmdtool has some nice features
that break a lot of other things.  If you use xterm (with
or without a scroll bar) all these features work fine.  Note
that you can also use ^P/^N in place of up/down arrows in tcsh,
as well as whatever up/down line commands supported by the
editor your emulating (emacs or vi).  This feature, as well
as file completion works better in xterm as well.

You can still get programs confused about the size of your terminal
with xterm, particularly after a telnet.  eval `resize` works
on a lot of systems to correct this.  I don't know about less -
I've hardly used it.  I almost never use more any more either -
my xterm scroll bar works! (more or less :)


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris,comp.unix.sys5.r4,comp.editors,comp.terminals
Path: stc06.ctd.ornl.gov!news.er.usgs.gov!rsg1.er.usgs.gov!jobone!news2.acs.oar
Sender: dkarr@cheetos.nmo.gtegsc.com
Distribution: inet
Message-ID: <uyensfc6j3.fsf@cheetos.nmo.gtegsc.com>
References: <310A3956.23B0@commonground.com> <4eot86$ngg@ngriffin.itc.gu.ed>
Organization: GTE NMO
Date: 01 Feb 1996 09:14:24 -0800
From: dkarr@nmo.gtegsc.com (David Karr)
Subject: Re: vi doesn't restore the terminal (text) in Solaris 2.4


>>>>> "Tony" == Tony Nugent <T.Nugent@sct.gu.edu.au> writes:
In article <4eot86$ngg@ngriffin.itc.gu.edu.au>,
  Tony Nugent <T.Nugent@sct.gu.edu:
      >
  Tony> Michael Bennett <mbennett@commonground.com> writes:

  >> When running vi under SunOS 4.1.3, after completing
  >> the edit, my terminal is pleasantly returned to
  >> it's original state.  For example, I can see the
  >> output of the last ls command I ran before running
  >> vi.

  >> Under Solaris 2.4, the text previously on the terminal
  >> is gone and I see part of the file I was editing instead.
  >> I find this horrible, and in fact it effectively eliminates
  >> the value of the scrollbar on my xterms.

  >> This definitely seems to be a problem with vi (or the curses
  >> library or something) because when rlogin'd to a SunOS
  >> machine from my Solaris machine, vi works as desired.
  >> It doesn't seem to be related to the terminal program, as
  >> the behavior is the same under xterm or shelltool.

  Tony> No, I don't think so.  xterm should be like vt220 (or is it vt102 -
  Tony> can't recall for certain now) in that it can save and restore parts of
  Tony> the screen.  It's a term problem, not one with vi (or curses).

  >> Anyone know why this is, or better yet what I can do to
  >> get the SunOS behavior under Solaris.

  Tony> Not too sure, but try asking this question in comp.terminals, as the
  Tony> gurus there might be able to point you in the right direction.

When we moved from SunOS to Solaris, I noticed the new behavior.  I
found a terminfo description with the missing "smcup" and "rmcup"
entries.  Using that description instead of the default one gave us
back the "restoring" behavior.

Here is the "xterm" description I've been using:

xterm|vs100|xterm terminal emulator,
       am, eslok, hs, km, mir, msgr, xenl,
       cols#80, it#8, lines#65,
       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
       bel=^G, blink=\E[5m$<2>, bold=\E[1m, clear=\E[H\E[2J,
       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
       dsl=\E[?E, ed=\E[J, el=\E[K, el1=\E[1K$<3>,
       enacs=\E(B\E)0, fsl=\E[?F, home=\E[H, ht=\t, hts=\EH,
       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
       ind=\n, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=\b,
       kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
       kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP,
       kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
       kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
       rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
       rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, sc=\E7,
       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^,
       sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smkx=\E[?1h\E=,
       smso=\E[7m, smul=\E[4m, tbc=\E[3g,
       tsl=\E[?E\E[?%i%p1%dT,

(be careful of Tabs vs. Spaces).

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.sys.sun.admin
Path: stc06.ctd.ornl.gov!fnnews.fnal.gov!uwm.edu!math.ohio-state.edu
      !howland.reston.ans.net!newsfeed.internetmci.com!news.sesqui.net
      !uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail
From: will@Starbase.NeoSoft.COM (Will Morse)
Subject: Re: Getting VAX key bindings from a Sun
Date: 25 Mar 1996 08:21:18 -0600
Organization: NeoSoft, Inc. +1 713 968 5800
Lines: 35
Message-ID: <4j6a4u$qdu@Starbase.NeoSoft.COM>
References: <4j5rlc$gir@info.estec.esa.nl>


In article <4j5rlc$gir@info.estec.esa.nl>,
Karl Keyte <kkeyte@esoc.esa.de> wrote:
>
> Can anyone tell me how to get correct VAX-style key bindings from, say, an
> xterm telnet-ed into a VAX/VMS system?  In particular, I'm looking for use
> of the numeric keypad for VAX EDT-like editing and all the function keys,
> including the F17 to F20 keys.  I don't really mind WHERE they're mapped,
> just so long as they're accessible.


I am not sure if this is what you are looking for, but try the +sf option
(turns off Sun Function Keys) on the xterm.


There is a fairly tedious, but useful, way to remap keys in the .Xdefaults
or app-defaults/XTerm file.  I recall it looks something like:


decxterm*VT100.Translations:  #override \n\
           <Key>F1:   string("0x1b") string("0q")    \n\

and you start your xterm as 

         xterm +sf -name decxterm ----- &

but I have been in a VAX-free environment for two years now and I might not
be remembering this completely.

Hope this helps.

Will
-- 
#      Gravity,                    #    Will Morse
#      not just a good idea,       #    BHP Petroleum (Americas) Inc.
#              it's the law.       #    Houston, Texas 
#                                  #    will@starbase.neosoft.com
#


 //////////////////////////////////////////////////////////////////////////////
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Excerpts from the OpenVMS FAQ:
------------------------------

DECW3.  How can I get the information from SHOW DISPLAY into a symbol?

Use the undocumented SHOW DISPLAY/SYMBOL, and then reference the symbols
DECW$DISPLAY_NODE,  DECW$DISPLAY_SCREEN, DECW$DISPLAY_SERVER and/or
DECW$DISPLAY_TRANSPORT.

                                        [Fairfield@Slac.Stanford.Edu]

------------------------------------------------------------

DECW4.  How do I get a log of a DECterm session?


If you are working from a Decterm, you can use the AutoPrint feature. Choose
the "Printer..." menu item from the "Options" menu, set the printing
destination to the name of the file you want, and set "Auto Print Mode".
You are now free to continue.

It should be noted that ALL the characters and escape sequences are captured,
but if you display the log file on a DECterm you will get EXACTLY what you had.

                                        [fenster@star.enet.dec.com]

------------------------------------------------------------

DECW5.  Problem - the DELETE key deletes forward instead of backward!


This has to do with Motif's virtual bindings.  When a Motif application starts
up, it looks at the vendor string returned in the display connection
information and attempts to match the string to a table of virtual bindings.


You can override the default bindings in your decw$xdefaults.dat file. Here is
the entry you would make to get the default VMS bindings.

*defaultVirtualBindings:\
 osfCancel      :               <Key>F11        \n\
 osfLeft        :               <Key>Left       \n\
 osfUp          :               <Key>Up         \n\
 osfRight       :               <Key>Right      \n\
 osfDown        :               <Key>Down       \n\
 osfEndLine     :Alt            <Key>Right      \n\
 osfBeginLine   :Alt            <Key>Left       \n\
 osfPageUp      :               <Key>Prior      \n\
 osfPageDown    :               <Key>Next       \n\
 osfDelete      :Shift          <Key>Delete     \n\
 osfUndo        :Alt            <Key>Delete     \n\
 osfBackSpace   :               <Key>Delete     \n\
 osfAddMode     :Shift          <Key>F8         \n\
 osfHelp        :               <Key>Help       \n\
 osfMenu        :               <Key>F4         \n\
 osfMenuBar     :               <Key>F10        \n\
 osfSelect      :               <Key>Select     \n\
 osfActivate    :               <Key>KP_Enter   \n\
 osfCopy        :Shift          <Key>DRemove    \n\
 osfCut         :               <Key>DRemove    \n\
 osfPaste       :               <Key>Insert

To merge:

        $ xrdb :== $decw$utils:xrdb.exe
        $ xrdb -nocpp -merge decw$xdefaults.dat

                                        [kleinsorge@star.enet.dec.com]

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: alt.solaris.x86,comp.unix.admin,comp.unix.solaris
References: <351147DE.B443E065@acm.org>
Message-ID: <35151EAB.B4E80DF7@acm.org>
Date: Sun, 22 Mar 1998 08:22:35 -0600
From: "Ewin H. Barnett" <ewin@acm.org>
Subject: Re: Xterm VT100/102 function keys

My thanks to the people who took time to respond to my cry for help in
getting xterm to have the proper PC key mapping for VT100, when logging
on to a remote VAX/VMS system.  I have combined the best parts from
several of the replies and produced the following whi works just fine
for me.

Ewin Barnett


 xterm  -title "Xterm on VAX" -sb -sl 1200  \
                -xrm \
                "XTerm*vt100.translations:     #override \n\
                <Key>Insert:            string(\001) \n\
                Shift <Key>Up:          scroll-back(1,lines) \n\
                Shift <Key>Down:        scroll-forw(1,lines) \n\
                Shift <Key>Right:       string(0x1b) string("f") \n\
                Shift <Key>Left:        string(0x1b) string("b") \n\
                Shift <Key>Delete:      string(0x1b) string(0x08) \n\
                Shift <Key>Tab:         string(0x1b) string("*") \n\
                <Key>0x1000FF0D:        scroll-back(1,page) \n\
                <Key>0x1000FF0E:        scroll-forw(1,page) \n\
                <Key>0x1000FF09:        string(\010) \n\
                <Key>0x1000FF0A:        string(\005) \n\
                <Key>BackSpace:         string(0x7f) \n\
                <Key>Select:            select-start() \n\
                <Key>0x1000FF02:        select-end(PRIMARY,CUT_BUFFER0)
\n\
                Meta <Key>0x1000FF02:   select-end(CLIPBOARD) \n\
                <Key>0x1000FF04:
insert-selection(PRIMARY,CUT_BUFFER0) \n\
                Meta <Key>0x1000FF04:   insert-selection(CLIPBOARD) \n\
                <Key>F1:                string(0x1b) string("OP") \n\
                <Key>F2:                string(0x1b) string("OQ") \n\
                <Key>F3:                string(0x1b) string("OR") \n\
                <Key>F4:                string(0x1b) string("OS") \n\
                <Key>F5:                string(0x1b) string("OA") \n\
                <Key>F11:               string(0x1b) string("[23~") \n\
                <Key>F12:               string(0x1b) string("[24~") \n\
                <Key>KP_0:              string(0x1b) string("OP") \n\
                <Key>KP_1:              string(0x1b) string("OQ") \n\
                <Key>KP_2:              string(0x1b) string("OR") \n\
                <Key>KP_3:              string(0x1b) string("OS") \n\
                <Key>KP_4:              string(0x1b) string("OT") \n\
                <Key>KP_5:              string(0x1b) string("OT") \n\
                <Key>KP_6: string(0x1b) string("Ov") \n\
                <Key>KP_7: string(0x1b) string("Ow") \n\
                <Key>KP_8: string(0x1b) string("Ox") \n\
                <Key>KP_9: string(0x1b) string("Oy") \n\
                <Key>KP_Divide:         string(0x1b) string("OQ") \n\
                <Key>KP_Multiply:       string(0x1b) string("OR") \n\
                <Key>KP_Subtract:       string(0x1b) string("OS") \n\
                <Key>KP_Enter:          string(0x1b) string("OM") \n\
                <KeyPress>Num_Lock: string(0x1b) string("OP") \n\
                <KeyRelease>Num_Lock: string(0x1b) string("OP") \n\
                Ctrl<Key>KP_Add: string(0x1b) string("Om") \n\
                <Key>KP_Add:            string(0x1b) string("Ol") \n\
                <Key>KP_Decimal:        string(0x1b) string("On") \n\
                <Key>Insert: string(0x1b) string("[1~") \n\
                <Key>Delete: string(0x1b) string("[4~") \n\
                <Key>Home: string(0x1b) string("[2~") \n\
                <Key>End: string(0x1b) string("[5~") \n\
                <Btn1Down>:             select-start() \n\
                <Btn1Motion>:           select-extend() \n\
                <Btn1Up>:               select-end(PRIMARY,CUT_BUFFER0)
\n\
                Button1<Btn2Down>:      select-end(CLIPBOARD) \n\
                Button1<Btn2Up>:        ignore()" \
                -e telnet xxxxx.com



--

====
Ewin H. Barnett III, Boone County, Missouri, USA.

When encryption is outlawed, only outlaws will encrypt.
"Never believe anything until it has been officially denied." Bismarck


 //////////////////////////////////////////////////////////////////////////////



DECW9.  How do I set the title on a DECterm window?


If you are creating a new DECterm window, check

HELP CREATE /TERMINAL /WINDOW_ATTRIBUTES.


If you want to change the title of an existing window, use the following
control sequences, where <esc> is the ANSI escape code, value decimal 27, and
<text> is what you want to display:


To set the DECterm title, send <esc>]21;<text><esc>\
To set the icon label, send    <esc>]2L;<text><esc>\

For example, DCL to display "My DECterm" in title bar:

$ ESC[0,8]=27
$ WRITE SYS$OUTPUT "``ESC`]21;My DECterm``ESC`\"

                                        [p_lee@decus.ch]


You can also change the title and the icon using the Options-Window...
menu.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris, comp.sys.sun.admin
Message-ID: <%5mY2.464$jw4.33999@burlma1-snr2>
References: <7gspkk$edd$1@nnrp1.deja.com>
Organization: GTE Internetworking, Cambridge, MA
Date: Thu, 06 May 1999 19:31:07 GMT
From: Barry Margolin <barmar@bbnplanet.com>
Subject: Re: Terminal Name

In article <7gspkk$edd$1@nnrp1.deja.com>,  <simon_talk@hotmail.com> wrote:
>I was wondering is there a way to change the title bar on a terminal
>window in CDE/CUE when in that window. I know that you can specify the
>title of the terminal when you are invoking it but I want to change the
>title when in the terminal. I know that this could be done in HP's version
>of CDE.



xterm supports escape sequences to set the window title and/or icon name.

\e ] 0 ; iconname-and-title \7
\e ] 1 ; iconname \7
\e ] 2 ; title \7

--
Barry Margolin, barmar@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.vms
Path: cs.utk.edu!cssun.mathcs.emory.edu!news-feed-1.peachnet.edu
      !usenet.eel.ufl.edu!news.mathworks.com!mvb.saic.com!info-vax
From: Jerry Leichter <leichter@lrw.com>
Subject: Re: WP on X-terminals, decwindows, Xcursion
Message-ID: <9603190244.AA17250@uu3.psi.com>
Date: Mon, 18 Mar 96 21:47:21 EDT
Organization: Info-Vax<==>Comp.Os.Vms Gateway


	>Word Perfect can show italic, both, underline and double underlined
	>characters on a VT Terminal (VT320,420,520). But only both and
	>underline  is shown on a DEC Windows Terminal or on the same started
	>with eXCursion from a PC.   If we change the Soft Char Switch on
	>DISABLE (with SET TERM /NOSOFT), on a VT Terminal, double underline
	>and italic is no longer shown. So we set the soft character also on
	>der DEC windows terminal. No success!! We thing that WP uses the soft
	>character, because there is no esc-sequence in the VT programing
	>system to cause character been displayed italic or double underlined.
	>If this is correct, the question is, why is the terminal emulation of
	>DEC Windows Terminal not able to do it?

	That's correct, WP is using the soft characters supported on real VT
	terminals. It's an impressive implementation... one can even display
	Russian characters on a character-cell terminal!

	Unfortunately, DEC didn't implement soft characters in their DECterm
	software. Why, I don't know, but I'd like to hear from someone in
	Digital about this.  Will soft characters ever be implemented in
	DECterms?

I wouldn't bet on it.

Soft characters are defined as bitmaps.  They are tied to the exact cell size
of the terminal, and sometimes to specific layout details.  (Some older
terminals, at least, would duplicate certain rows or columns as a way to get
"richer" characters without having to allocate space for them.)  Hence, any
particular soft characters you define are specific to the particular terminal.
For a DECterm, you'd have to define a whole set of characters for ... well,
for *what*?  For a DECterm, *everything* is soft:  You can use any font you
like.  (Well, any fixed-width font that contains the proper characters at
least.)  The cell sizes will vary.

Given an X-window-based system, there are much more flexible and powerful ways
to use alternate fonts if you want them.  The potential payoff from providing
the facility in a DECterm window isn't very high, and the problems involved
could be complex.  (A "real" terminal is controlling the font-to-screen stuff
entirely by itself; a DECterm, on the other hand, is letting X do that stuff.
So it's not so easy to just shove in some new characters.)

None of this is to say that such a facility *couldn't* be provided, or that it
might not be handy in some (probably quite rare) circumstances.  But my bet is
that the demand just isn't there to justify the necessary effort.

							-- Jerry

 //////////////////////////////////////////////////////////////////////////////



from the SUN FAQ

   http://www.cis.ohio-state.edu/hypertext/faq/usenet/comp-sys-sun-faq/faq.html

--4)    Can I use Sun's AnswerBook under X11R5(6)?

        AnswerBook in its current form requires the Openwindows
        server. It uses the NeWS/Display Postscript extensions
        to this server to display the Answerbook files.

        To use AnswerBook under X11R5 you will need to replace the 
        docviewer program with program that calls Ghostscript to view
        these pages.  A replacement docviewer can downloaded from
        ftp.ece.uc.edu [129.137.8.99] as

            /pub/sun-faq/Source/docviewer.tar.gz

        This kit contains more than one  docviewer. Try using
        the one in the toplevel docviewer directory.

        This replacement docviewer does not support all the options that
        the "real" docviewer supports such as "hypertext" links.

        To install the replacement "docviewer" you will also need 
        Ghostscript 2.4 or above and Ghostview 1.3 or above both of
        which are available from prep.ai.mit.edu in the
        /pub/gnu/ directory.

        This replacement docviewer is reported to work with all versions
        of AnswerBook but not as well as the original :).
         
        (searching and hyperlinks don't work)


 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.sys.sun.admin,comp.terminals
Path: cs.utk.edu!news.msfc.nasa.gov!europa.eng.gtefsd.com!MathWorks.Com
      !usenet.fiu.edu!usenet.ufl.edu!clas.ufl.edu!usenet.cis.ufl.edu
      !prl.ufl.edu!kem
Date: 12 Jul 1994 21:30:06 GMT
Organization: University of Florida Parallel Reasearch Lab.
Message-ID: <2vv20u$7pc@sand.cis.ufl.edu>
References: <CsIE54.4EL@eng_ser1.ie.cuhk.hk>
From: kem@prl.ufl.edu (Kelly Murray)
Subject: Re: cannot lock screen in X terminal

In msg <CsIE54.4EL@eng_ser1.ie.cuhk.hk>, shlam@ie.cuhk.hk (Alan S H Lam) wrote:
|>
|> I am using Sparcclassics X terminal running xdm. I find
|> that I cannot lock screen on my X terminal. Do I need to
|> hack the xlock code to do so? If I hack the xlock code,
|> will I violate some important security measures in xlock?

|  Try using the -remote option to xlock when running on an X terminal.

-- 
- Kelly Murray  (kem@prl.ufl.edu) <a href="http://www.prl.ufl.edu">
-University of Florida Parallel Research Lab </a> 96-node KSR1, 64-node nCUBE


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.sys.sun.admin,comp.terminals
Path: cs.utk.edu!gatech!europa.eng.gtefsd.com!MathWorks.Com
      !transfer.stratus.com!xylogics.com!Xylogics.COM!carlson
Date: 13 Jul 1994 15:07:03 GMT
Organization: Xylogics Incorporated
Message-ID: <300vun$rgo@newhub.xylogics.com>
References: <CsIE54.4EL@eng_ser1.ie.cuhk.hk> <2vv20u$7pc@sand.cis.ufl.edu>
            <300o68$qtt@newhub.xylogics.com> <300tdd$3fe@mail.fwi.uva.nl>
From: carlson@Xylogics.COM (James Carlson)
Subject: Re: cannot lock screen in X terminal

In article <300tdd$3fe@mail.fwi.uva.nl>,
 casper@fwi.uva.nl (Casper H.S. Dik) writes:
|
|> carlson@Xylogics.COM (James Carlson) writes:
|> )
|> )  try  "xlock -remote"...
|> )
|> >That doesn't quite do it, either.  It leaves the xhost stuff
|> >misconfigured so that the terminal is useless once the lock is removed.
|> >I have to power-cycle (!) my NCD tube if I use "xlock -remote" from our
|> >SunOS 4.1.3 system.  And the documentation is a little vague about how
|> >to fix this (+allowaccess doesn't seem to fix the problem).
|> 
|> >If someone does find a way to use this, I'd like to know!
|> 
|> 
|>  Run your xterminal with magic cookie authorization, not with
|>  xhost authentication.  That way xlock can't screw up the auth info.


Ah, that must be the problem.  NCD17c version 2.2.0 doesn't seem to
support MIT-MAGIC-COOKIE authentication.  Sigh ...

--
James Carlson <carlson@xylogics.com>            Tel:  +1 617 272 8140
Annex Software Support / Xylogics, Inc.               +1 800 225 3317
53 Third Avenue / Burlington MA  01803-4491     Fax:  +1 617 272 2618


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 217.210.1.160
NNTP-Posting-Date: Fri, 24 Nov 2006 12:26:57 CET
Message-ID: <5GA9h.24160$E02.9896@newsb.telia.net>
Date: Fri, 24 Nov 2006 11:26:57 GMT
From: "Thommy M. Malmstrm" <thommy.m.malmstrom@gmail.com>
Subject: xhost + & DISPLAY=localhost:0


What can I've done wrong when I get this behaviour?

Logged in "normal" user in Gnome I do "xhost +"
then I su -, bash and export DISPLAY=localhost:0

But every attempt to bring up a window as root gives "Can't open
display". Then I do export DISPLAY=:0 and now it works to get a window
up as root. I've done this a million times on thousands of installations
before and it has always worked. So, my fingers must have slipped
somewhere but I can't figure out where... ;-) Is it a IPv6 thing and the
first row in /etc/inet/hosts "::1     localhost" ???
Doesn't help to just remove that line...

/Thommy M.

# grep -v ^# /etc/inet/hosts
::1     localhost
127.0.0.1       localhost loghost
192.168.128.106 schumi
192.168.0.107   koha
192.168.128.113 samprinter
192.168.128.114 backup  # Added by DHCP

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
         inet 127.0.0.1 netmask ff000000
rtls0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500
index 2
         inet 192.168.128.114 netmask ffffff00 broadcast 192.168.128.255
         ether 0:f:ea:e8:fc:71
rtls0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet 192.168.0.107 netmask ffffff00 broadcast 192.168.0.255


# cat /etc/release
                             Solaris Nevada snv_49 X86
            Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
                         Use is subject to license terms.
                            Assembled 25 September 2006


 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 62.177.151.68
References: <5GA9h.24160$E02.9896@newsb.telia.net>
Message-ID: <4566f137$0$322$e4fe514c@news.xs4all.nl>
Organization: Sun Microsystems, Netherlands
Date: 24 Nov 2006 13:18:47 GMT
From: Casper H.S. Dik <Casper.Dik@Sun.COM>
Subject: Re: xhost + & DISPLAY=localhost:0

=?ISO-8859-1?Q?=22Thommy_M=2E_Malmstr=F6m=22?=  <thommy.m.malmstrom@gmail.com>
writes:

>What can I've done wrong when I get this behaviour?

>Logged in "normal" user in Gnome I do "xhost +"
>then I su -, bash and export DISPLAY=localhost:0

Which version of Solaris did you install?

"DISPLAY=:localhost" uses a TCP/IP connection; in newer Solaris releases,
TCP/IP listening for the X server is disabled
(recent Solaris Nevada builds, from build 42 onwards)

With "xhost +" people could connect from everywhere and look at the
passwords and such you typed and information on the screen.

So this change is for the good.

Instead of doing "xhost +" you should try doing:

        xhost +SI:localuser:root

(allows connections from root on the local system only; and yes,
we *can* tell this with 100% accuracy in Solaris 10 and later)

And yes, you should set the DISPLAY to :0; that is the canonical name
for the loopback interface (X will select the "fastest" connection)

Casper

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 217.210.1.160
NNTP-Posting-Date: Fri, 24 Nov 2006 15:02:16 CET
References: <5GA9h.24160$E02.9896@newsb.telia.net>
    <4566f137$0$322$e4fe514c@news.xs4all.nl>
Message-ID: <IXC9h.24180$E02.9820@newsb.telia.net>
Date: Fri, 24 Nov 2006 14:02:16 GMT
From: "Thommy M. Malmstrm" <thommy.m.malmstrom@gmail.com>
Subject: Re: xhost + & DISPLAY=localhost:0

Casper H.S. Dik wrote:
>
> =?ISO-8859-1?Q?=22Thommy_M=2E_Malmstr=F6m=22?= <thommy.m.malmstrom@gmail.com> writes:
>
>> What can I've done wrong when I get this behaviour?
>
>> Logged in "normal" user in Gnome I do "xhost +"
>> then I su -, bash and export DISPLAY=localhost:0
>
> Which version of Solaris did you install?


As stated in the bottom of my posting, Solaris Nevada snv_49 X86


> "DISPLAY=:localhost" uses a TCP/IP connection; in newer Solaris releases,
>
> TCP/IP listening for the X server is disabled
> (recent Solaris Nevada builds, from build 42 onwards)
>
> With "xhost +" people could connect from everywhere and look at the
> passwords and such you typed and information on the screen.
>
> So this change is for the good.
>
> Instead of doing "xhost +" you should try doing:
>
>       xhost +SI:localuser:root


   xhost +SI:localuser:root works perfectly


> (allows connections from root on the local system only; and yes,
> we *can* tell this with 100% accuracy in Solaris 10 and later)
>
> And yes, you should set the DISPLAY to :0; that is the canonical name
> for the loopback interface (X will select the "fastest" connection)


Thanks Casper, your answers are always so detailed and accurate.
Keep up the good work.

Again thanks,

/Thommy M.


 //////////////////////////////////////////////////////////////////////////////


Path: utkcs2!stc06.ctd.ornl.gov!cs.utk.edu!gatech!news.mathworks.com
     !europa.clark.net!dciteleport.com!usenet.logical.net!node2.frontiernet.net
     !news.interactive.net!news.new-york.net!news1.netusa.net!not-for-mail
From: Eli the Bearded <usenet-tag@qz.little-neck.ny.us>
Newsgroups: comp.unix.questions,comp.unix.shell,comp.terminals,
            comp.sys.mac.comm,alt.fan.e-t-b
Subject: Re: Problems with vi and Telnet 2.7 (mac)
Date: 15 Mar 1997 03:16:18 GMT
Organization: Some absurd concept
Message-ID: <5gd4a2$v2t$1@news.netusa.net>
References: <858232854.27986@dejanews.com> <schipE6yyp4.I6u@netcom.com>
            <19970314201704466633@fleur.rtp.co.nz>
NNTP-Posting-Host: alpha.netusa.net

[comp.unix.misc replaced with comp.terminals]

Bryan Christianson <bryanc@ihug.co.nz> wrote:
>
> Jan B. Schipmolder <schip@netcom.com> wrote:
>> jmack@p3.net wrote:
>>
>> : I use Telnet 2.7 (Mac) and vi to edit/create web pages.
>> : I like to set the session size of the emulation to be larger
>> : than the default, say to 50 lines and 90 columns (from 26, 80).


In some environments this works:

        % stty rows 50 ; stty columns 90

>> After setting the window size, and before entering vi, try to see if
>>    resize
>> is an available command. I usually do
>>    resize >& /dev/null

If this is the resize from X11, that will not work.

        % eval `resize`

It sends an escape sequece to the terminal and the terminal returns
the size. Then it creates commands for csh or $SHELL (depends on the
version of resize) and outputs them. The eval then evaluates the
commands. It may do the stty reset as well, I don't know.

> It all depends on the UNIX system. With SVR4 (Solaris, UnixWare etc) the
> terminfo database controls all this stuff and on BSD derived systems its
> the TERMCAP file. This database is maintained by the UNIX system
> administrator and is not changeable by 'mere mortals'.

Many implementations allow "mere mortals" to specify their own
terminfo database directory with the $TERMINFO env variable. I've
done this extensively under HP-UX which has a handy untic command
to decompile existing terminfo stuff. The TERMCAP env varible can
contain a database entry for the current terminal in many
implementations.

Elijah
------
B"mere-mortal"FH


 //////////////////////////////////////////////////////////////////////////////

2003

A problem can occur with changing the xterm window size under Solaris in
the following releases:

SPARC platform

    * Solaris 2.6 with patch 105181-34 or later
    * Solaris 7 with patch 108319-03 or later
    * Solaris 8 with patch 109007-09 and 108875-13 or later
    * Solaris 9 with patch 114135-01 or later

x86 Platform

    * Solaris 2.6 with patch 105182-34 or later
    * Solaris 7 with patch 108320-03 or later
    * Solaris 8 with patch 109008-09 and 108876-13 or later
    * Solaris 9 with patch 114136-01 or later

You may with to contact Sun support for help.
http://www.sun.com/service/contacting/solution.html
You can call 1-800/USA-4-SUN in the United States, 1-800/722-4-SUN in Canada.


 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.solaris
References: <7414ad99.0305080802.599a3bb5@posting.google.com>
Message-ID: <b9gsmi$6d6$1@reader1.panix.com>
Organization: I have a map of the United States that's actual size
Date: Fri, 9 May 2003 18:40:18 +0000 (UTC)
From: Greg Andrews <don't want email>
Subject: Re: Terminal change to 18 rows after patching

hicom@bj163.com (Hicom) writes:
>
> I found a problem after installing recommended patches of Solaris.
>
> Today, I download Solaris 2.6 recommended patches(May-7-2003) form
> SunSolve and install it on my Solaris system.
>
> When I telnet or ssh this Solaris host, I found the terminal window
> size has been changed to 18 rows.
> I tried the CRT program, cmd.exe and SecureCRT (VT100 or ANSI mode). 
> Especially when I use up and down key to move cursor with vi any files,
> many rows are rolling and covering, the screen display of terminal is
> disordered and confused. I can't edit files.


You're experiencing bug 4843340:

4843340  patch 105181-34 /kernel/strmod/ptem returns EINVAL for TIOCGWINSZ ioctl

What this means is, the programs runnning on Solaris 2.6 (like vi)
perform a function call to find out the window size in rows and columns.

When you're on a pseudo-terminal such as when telnetting or ssh-ing,
the kernel /kernel/strmod/ptem module handles the function call.

The kernel patch 105181-34 broke that function call in the ptem module.
Now, instead of returning the correct window size, the function call
returns an error.

Different applications handle this in different ways.  Some assume the
screen size of the original VT-100 terminal is the correct size (24
rows and 80 columns).  Others do other things.

Sun is working on the fix for the problem, but I haven't heard when
it will become available.  Meanwhile, there are three potential
workarounds:

  1)  Some people have defined their terminals as "xterm" and had
      things work better for them.  This might not work for everyone,
      however.  (the bug says defining the terminal type as "vt100"
      is the workaround, but that's incorrect)

  2)  Back out kernel patch 105181-34 and reboot.  This will restore the
      previous version of the /kernel/strmod/ptem file, which didn't have
      this problem.  This might not be possible or desirable for everyone,
      though.

  3)  Copy the /kernel/strmod/ptem file from another Solaris 2.6 machine
      that has not yet been patched with 105181-34, then reboot.  This
      will restore the one broken file while allowing you to enjoy the
      other bugfixes in 105181-34.  This can be done as long as you have
      another 2.6 machine available (unpatched), or you can retrieve the
      /kernel/strmod/ptem file from a backup tape made before you applied
      patch 105181-34.

  -Greg
-- 
Do NOT reply via e-mail.
Reply in the newsgroup.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris, comp.sys.sun.admin
References: <3EE4FCEA.7070802@mie.utoronto.ca>
Message-ID: <bc38ru$2c12$1@agate.berkeley.edu>
Date: Tue, 10 Jun 2003 00:30:54 +0000 (UTC)
From: Alan Coopersmith <alanc@alum.calberkeley.org>
Subject: Re: xterm + vi + line-wrapping = freeze

Oscar del Rio <delrio@mie.utoronto.ca> writes in comp.unix.solaris:
|
| Running Solaris 9 on SunBlade 100, last patched May 22...
|
| When running vi in a xterm, editing a file with long lines
| that wrap (e.g. 200-char lines on a 80x24 xterm), if I position
| the cursor near the first line-wrap (e.g. at char 75) and
| type or middle-click to paste some text that would wrap to the
| next line, the xterm freezes and has to be killed (losing
| the vi session)

*sigh* I thought this patch was pulled.  Yes, it was a bug introduced
in 112785-16 (I think - around that rev), and is fixed in 112785-19
(still in testing).

The bug id is:
4847054 xterm switches to autistic mode by inserting at end-of-line in vi

...and yes, setting your TERM to vt100 prevents it by causing different
terminal escape sequences to be used that don't get it stuck.

________________________________________________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://www.CSUA.Berkeley.EDU/~alanc/       aka: Alan.Coopersmith@Sun.COM
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
Path: utkcs2!stc06.ctd.ornl.gov!news.he.net!news.maxwell.syr.edu
      !feed1.news.erols.com!europa.clark.net!news.clark.net!clark.net
Date: 25 Apr 1997 13:20:15 GMT
Message-ID: <5jqb2f$5d2@clarknet.clark.net>
References: <335E2E31.A33BDE5@usa.net>
            <Pine.SUN.3.91.970424123213.567E-100000@duncan.cs.utk.edu>
            <5jpul8$l47$1@newsserver.rrzn.uni-hannover.de>
From: T.E.Dickey <dickey@clark.net>
Subject: Re: color xterm (was Re: Color ls in xterm???)

Andreas Kromke <and@imr.uni-hannover.de> wrote:
:
: Richard S. Shuford wrote:
: :
: : An updated version of "xterm" that supports color via the ANSI X3.64
: : control sequences is available from:
: :
: :     http://www.clark.net/pub/dickey/xterm/xterm.html

	[Archiver's Note:  In 2003, this URL is now
	    http://dickey.his.com/xterm/xterm.html
	]

: :
: : This version also extends the stock xterm by supplying DEC VT220 emulation.
:
: I succeeding in compiling this.
: But, I do not get colour. I start ./xterm and did a printf() with


It's documented in the "man" page (honest ;-)   Look in:

    http://www.clark.net/pub/dickey/xterm/xterm.faq.html

    [2003 URL:  http://dickey.his.com/xterm/xterm.faq.html]


: printf() with ANSI codes (works with dtterm), but all was B/W.
: Do I have to do anything with Xterm.ad, terminfo, termcap and so on?
:
: I did not find an instruction for installing the program.


At this point, it's using the standard imake mechanism (which
generates an install-rule in the Makefile).  When I go back to it (I'm
preparing releases for two other, larger programs), I'll construct (in
parallel, of course) a configure script to simplify the process.

--
Thomas E. Dickey
<dickey@clark.net>
http://www.clark.net/pub/dickey/


 //////////////////////////////////////////////////////////////////////////////


From dickey@clark.net Mon Sep  8 12:11:21 1997
Path: utk.edu!newsfeed.usit.net!news.clark.net!not-for-mail
Newsgroups: comp.terminals,comp.unix.aix,comp.protocols.kermit.misc
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970527; sun4u SunOS 5.5.1]
NNTP-Posting-Host: 100-explorer.clark.net
Message-ID: <5usgbh$577@clarknet.clark.net>
References: <340AB90E.2781@atess.bel.alcatel.be>
	<5ukmsb$7uo$1@vixen.cso.uiuc.edu>
	<5umll1$874$1@apakabar.cc.columbia.edu>
	<tsw-0409971206260001@cypher.cagent.com>
	<5unadi$kd2$1@apakabar.cc.columbia.edu>
	<5uscle$mv9$1@picasso.op.net>
Date: 6 Sep 1997 21:01:37 GMT
From: T.E.Dickey <dickey@clark.net>
Subject: Re: VT320 emulation
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit


In comp.terminals root@candle.pha.pa.us wrote:
:
: Here is what I use in my XTerm init file to do a vt220 in an xterm.  I
: start the xterm like this:

: xterm $XTERMFLAGS +rw +sb +ls $@ -tm 'erase ^? intr ^c' -name vt220 \
:         -title vt220 -tn xterm-220 "$@" &

If you are using the plain X Consortium xterm (rather than the one I've
been working on), it still won't be a vt220, since the vt220 recognizes
a number of escape sequences (e.g., SGR 22) that the quasi-vt100 standard
xterm doesn't.

The XFree86 3.3 xterm supports ANSI color and VT220 emulation
There's an faq at
	http://www.clark.net/pub/dickey/xterm/xterm.faq.html

	[2003 URL: http://dickey.his.com/xterm/xterm.faq.html]

-- 
Thomas E. Dickey
dickey@clark.net
http://www.clark.net/pub/dickey

 //////////////////////////////////////////////////////////////////////////////


Date: 17 Mar 1998 21:47:01 -0700
From: Robert Sweet <rsweet@robs.sna.primenet.com>
Newsgroups: comp.unix.solaris, comp.unix.cde
Subject: Re: dtterm very slow with Solaris 2.6
 
David P. Michaels wrote:
> 
> >>>>> "Eric" == Eric Edwards <ese002@news9.exile.org> writes:
> 
>     Eric> Dtterm has it's annoyances, sure.  But there are reasons to use
>     Eric> it, even now.
> 
> Really? ;)
> 
>     Eric> Dtterm is color.  The Xterm shipped with Solaris is not.
> 
> As mentioned in other posts, and as I'm sure you're aware, color versions
> of xterm are available on the net.  I was under the impression that at
> least one color xterm was 'bundled' with X11R6, which Solaris 2.6 uses, but
> it seems it's not included.
> 
>     Eric> Dtterm is shipped with a useable configuration: Good choise of
>     Eric> colors and fonts.  Xterm comes up a wretched black on gray color
>     Eric> scheme with a small, crummy font.  This can be fixed with the
>     Eric> right X resources, of course, but one can waste a lot of time
>     Eric> comming up with a pleaseing Xterm configuration when Dtterm works
>     Eric> right out of the box.
> 
> Or, Sun could save a LOT of your time by putting in some NICE xterm
> defaults into the various default Xresources files.  Just take a look at
> /usr/openwin/lib/app-defaults/XTerm, and you'll see what I mean.  I think
> the 'ugly' default nature of Xterms is a design to encourage dtterm usage.
> It appears that is working for some people, particularly those who never
> used xterm before, and thus never went through the ritual of 'fixing' the
> lousy default resource settings for it in their private .Xdefaults file.
> 
>     Eric> If one is acustomed to command tool, you can still use the same
>     Eric> cut and paste mechanism.  If you prefer the Xterm style, the
>     Eric> middle mouse button works just like in Xterm.  Xterm itself only
>     Eric> supports the latter.
> 
> Actually, my officemate's dtterms don't allow mouse cut&paste.  When I use
> his machine, I MUST use the copy/paste buttons.  Very annoying.  Not sure
> how that happened, but there it is.  I trust what you're saying is
> accurate, though, for defaults, because he's the only one I've seen have
> that problem.
> 
> I dislike how the default dtterm action is to act as a login shell.  I also
> dislike the default dtterm background/foreground, as it is taken from the
> color scheme for the desktop, which =rarely= translates well as comfortable
> colors for interactive text windows.  Then again, the default xterm
> background/foreground I think has the same, or worse problem [which, again,
> is a design flaw on Sun's part, not any flaw of xterm in particular - take
> 'ghostview' for instance ... its default foreground is white, and default
> background is the same as the desktop's default background ... imagine how
> ugly that can get, depending on your desktop's color scheme ... especially
> 'bright' color schemes ... yuck!! .. but then again, that's a matter of
> your SA's installation practices, since ghostview isn't bundled].
> 
> When I first switched to CDE from mwm, I hung out with the dtterms for a
> while.  At first, I thought they were great, because they 'fixed' a problem
> I was having with the 'tekwindow' with xterms (you know,
> control-mousebutton? .. the window was always 80x50 pixels .. I'll give you
> 3 guesses why ;).  But then, I started seeing all the bugs that dtterms
> had.  Like how sometimes when you were cut&pasting text from one of the
> windows, all the rest of the text would disappear, or maybe just the left
> 10 columns worth.  Yuck.  As soon as I figured out how to convince CDE to
> use xterms instead of dtterms, I did so, and never use them anymore unless
> I'm at someone else's console.  And even then, I usually first run 'xterm
> &', and do whatever work I need to do there in that window, which I can
> then conveniently kill when I'm done, leaving their workspace unchanged.
> 
> I suspect dtterms are much nicer now (though someone else said they were
> really slow now, for some reason?).  I could still do without the silly
> cut&paste animation, but that's not a real gripe.  Suffice it to say, my
> roots have been so firmly planted in the 'xterm' world for so long, that
> switching now is meaningless, unless someone can convince me that 'xterm'
> will some day go away. ;)
> 
> --
>  Dave Michaels, Raytheon, Unix SA  |   "I wonder what news is doing..."
> dmichael_NOSPAM@redwood.dn.hac.com | news@newshost <29> ps -fu news
>  http://www.dimensional.com/~rooth | news 18624 12367  2  0:00 makehistory
>    rooth_NOSPAM@dimensional.com    |      "News is making history."


I am running Triteal CDE on a RH 5.0 Linux box and dtterm, IMHO, is very
good and just as fast as xterm or color-xterm. It also has features that
xterm doesn't.

--  
 
                     .........
Robert Sweet           `:::'                  .......  ......
robs@primenet.com       :::  *                  `::.    ::'
Gardner Lithograph      ::: .::  .:.::.  .:: .::  `::. :'
                        :::  ::   ::  ::  ::  ::    .::.
                        ::: .::. .::  ::.  `::::. .:'  ::.
                     ...:::.....................::'   .::::..
                                      The choice of a GNU generation

UNIX is user friendly. It's just selective about who its friends are.


 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.solaris,comp.unix.cde
Message-ID: <6erec5$jur$1@clarknet.clark.net>
References: <slrn6g9pc3.1g2.ese002@spica.exile.org>
            <6e6oi1$fl9$1@shade.twinsun.com>
            <slrn6ghgfg.l11.ese002@spica.exile.org>
            <ygo3eghqh37.fsf@cheetah.dn.hac.com>
            <350F5036.B08746F8@robs.sna.primenet.com>
Date: 19 Mar 1998 15:41:57 GMT
From: "T.E.Dickey" <dickey@shell.clark.net>
Subject: Re: dtterm very slow with Solaris 2.6

In comp.unix.cde Robert Sweet <rsweet@robs.sna.primenet.com> wrote:
:
: I am running Triteal CDE on a RH 5.0 Linux box and dtterm IMHO is very
: good and just as fast as xterm or color-xterm. It also has features that
: xterm doesn't.



Some features (the popup with the help panel), true.  But for a fair
comparison, you ought to compare against things that are current.

(X Consortium's not done any significant recent development on xterm,
but we've done that in XFree86)

The XFree86 3.3.2 xterm supports ANSI color and VT220 emulation

There's the FAQ at

	http://www.clark.net/pub/dickey/xterm/xterm.faq.html

	[2003: http://dickey.his.com/xterm/xterm.faq.html]

-- 
Thomas E. Dickey
dickey@clark.net
http://www.clark.net/pub/dickey/


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.sys.hp.hpux,comp.unix.admin,comp.unix.cde
Path: transfer.stratus.com!cam-news-feed2.bbnplanet.com
      !cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com
      !news.bbnplanet.com!nntp.abs.net!Supernews60!supernews.com!uunet
      !in3.uu.net!walter.wcom.com!news
Organization: IBM
Message-ID: <352E35AF.41C6@wcom.com>
References: <6gh12p$o3q@nrtphba6.bnr.ca>
X-NNTP-Posting-Host: y2kdev.wiltel.com
X-Mailer: Mozilla 2.0 (X11; I; AIX 1)
To: cballard@nortel.com
Date: Fri, 10 Apr 1998 10:07:27 -0500
From: Bipin Vijayasenan <bipin.vijayasenan@wcom.com>
Subject: Re: CDE font problems...

cballard@nortel.com wrote:
> 
> Hey,
>         I'm moving some applications from a HPUX 10.20 machine running
>         HP-VUE to a 10.20 machine running CDE...  I've been getting some
>         font errors when running these applications from an Envizex Xterm.
> 
>         here they are:
> Warning: Cannot convert string
> "-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontStruct
> Warning: Missing charsets in String to FontSet conversion
> Warning: Cannot convert string
> "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontSet
> Warning: Missing charsets in String to FontSet conversion
> Warning: Cannot convert string
> "-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontSet
> 
>         I'm sure that many people have come across this in their
>         migration to CDE, as I've seen this problem before.  If anyone
>         can help, I'd appreciate it.
> 
>         Thanks,
> 
> --
> Chris Ballard
> Systems Engineer
> <cballard@nortel.com>


I hope you have solved the problem with the font server as suggested by 
Steve and Greg. I had a similar problem with eXceed (PC Xserver) trying
to connect to our AIX. When I specified the font server in the eXceed 
configuration, the problem was solved.

My setting in exceed is
server 		: our AIX server (font server )
Transport	: TCP
Port		: 7500 ( Normally font servers use 7000 )
Catalogue	: all ( i dont understand this entry )

Good Luck
Bipin


 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.sys.hp.hpux
Date: 23 Apr 1998 19:54:10 GMT
From: David Dalton <dalton@cup.hp.com>
Subject: Re: XTERM300

Sanchez.Philippe (sanchez@lmt.ens-cachan.fr) wrote:
:>
:> I would like to know more about XTERM300


If you install PHNE_11017 on a 10.20 system, and also some filesets from
the s300 media for 9.10, then your s300 machines can be used with HP-UX
10.20.  .   For more information see:


"Interoperability Guide for HP-UX 9.x/10.x" (part number 5964-1370) 
"Updating to HP-UX 9.10" (part number B1864-90101).

The idea is that a s300 machine can boot from a s700 or s800 10.20 server 
as a special kind of diskless client.  The s300 gets a special executable 
(kernel) that turns it into an X Terminal.  It is a good way to get some
additional value out of your s300 hardware when all your s700/800 systems
have moved to 10.x.

--
-> My $.02 only   Not an official statement from HP {They make me say that}
--
     As far as we know, our computer has never had an undetected error.
---------------------------------------------------------------------------
David Dalton           <dalton@cup.hp.com>            408/447-3016


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.sys.hp.hpux
Message-ID: <3544A404.18A0@uni-tuebingen.de>
References: <6i26j3$i5i@bgtnsc02.worldnet.att.net>
Date: Mon, 27 Apr 1998 17:28:04 +0200
From: Marcus Siegl <marcus.siegl@uni-tuebingen.de>
Subject: Re: xterm problem

Hi Renato

> I'm running HP UX 10.20 and I have Hummingbird Exceed 5.0.  When
> I open a new X Windows session, by typing xterm, I lose the aliases
> I created when executing my .profile.

Try 

xterm -ls 

That means LoginShell. Normaly you can tell the X to start xterm
always with -ls. It is made by adding the line 
XTerm*loginShell: true
in your .xdefaults or .xresources and xrdb -merge .xresources

Bye
-- 
Marcus Siegl
Tel.  : 07071-29-76076, Fax : 07071-5059
Post  : SFB 275, Sigwartstr. 10, 72076 Tuebingen
WWW   : http://www.uni-tuebingen.de/geo/staff/gpi/mac.html
# Ohh..Mmmama .. : Johnny Bravo


 //////////////////////////////////////////////////////////////////////////////


From the periodic FAQ (as seen in May 1998):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        HOW TO MAXIMIZE THE PERFORMANCE OF X -- monthly posting
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Compiled by Art Mulder (art.mulder@ualberta.ca)


A Better Terminal Emulator for X
- - - - - - - - - - - - - - - - -
 
  From the README file distributed with xterm:
 
  +-----
  |              Abandon All Hope, Ye Who Enter Here
  |
  | This is undoubtedly the most ugly program in the distribution.
  | ...
  +-----
 
  Ugly maybe, but at my site it's still the most used.  I suspect that
  xterm is one of the most used clients at many, if not most sites.
  Laziness?  Isn't there a better terminal emulator available?  See
  below.
 
  If you must use xterm, you can try reducing the number of saveLines
  to reduce memory usage.  [ Oliver Jones (oj@roadrunner.pictel.com),
 
 
1) Xvt
   Suggested by: Richard Hesketh (rlh2@ukc.ac.uk)
   Author: John D. Bovey (jdb@ukc.ac.uk)
   Available: export.lcs.mit.edu in /contrib/xvt-1.0.tar.Z
 
   [From the README file] "Xvt is an X terminal-emulator that is
   designed to be more or less compatible with xterm while using much
   less swap space.  It is mainly intended for use at sites which use
   large numbers of X terminals but may also be useful on single
   workstations that are short of memory.  On a [SunOS 4.1.* Sparc], an
   initially invoked xvt uses about 1/3 megabyte of swap while xterm
   uses about 1.3 megabytes (obtained by running pstat rather than ps
   which seems to give unreliable size figures on SPARCs).  The main
   way that xvt achieves its small size is by avoiding the use of the X
   toolkit.

   Since it is a partial 'clone' of xterm, you don't have to rename
   your resources, as xvt pretends to be "XTerm".  In its current
   version, you cannot bind keys as you can in xterm.  I've heard that
   there are versions of xvt with this feature, but I've not found any
   yet.
 
   UPDATE (Oct 1993):  John Bovey tells me that a new version of xvt is
   in the works that should have some of the most frequently missed
   xterm features.
 
   There have been some conflicting opinions aired over xvt vs. xterm.
   Different sites with different needs will likely have to do
   their own evaluation.  Caveat Emptor, your mileage may vary.
 
   I have seen hard data from J.Bovey showing how xvt does in fact
   require less swap space than xterm.  However, both of us would still
   like to see any other benchmarks that people can provide comparing
   the two.  (eg: How much RAM each occupies, relative speed of each.)
 
2) rxvt
   Suggested by: Zack Evans (zevans@nyx.cs.du.edu)
   Author: Rob Nation (nation@rocket.sanders.lockheed.com)
 
   Originally a stripped down Linux port of xvt, with some 
   minor modifications, I'm now told that this program has
   been updated several times.   
 
   John Henders (jhenders@stdismas.wimsey.com):
     Here's a comparison of memory usage between xterm and rxvt on
     linux. As a bonux, rxvt scrolls text about 10X faster than an
     xterm as well.
 
       PID TTY MAJFLT MINFLT TRS DRS SIZE SWAP  RSS SHRD LIB DT COMMAND
     23658 p 1     23    195  44 168  772    0  772  548 560 56 rxvt
     27411 pq3    110    247  84 140 1104    0 1104  800 880 76 xterm
 
   [ed note: So, has 'rxvt' completely superseded 'xvt', or is 'xvt'
    still in development? ]

 
3) mterm
   Suggested by/Author: der Mouse (mouse@Lightning.McRCIM.McGill.EDU)
   Available: larry.mcrcim.mcgill.edu (132.206.1.1) in
     /X/mterm.src/mterm.ball-o-wax.
 
   "I also have my own terminal emulator.  Its major lack is
   scrollback, but some people like it anyway."
 
- - - - - - - - - - -


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
Message-ID: <Pine.BSI.3.95.981002101509.3852C-100000@blues.jpj.net>
References: <6uo3g8$aic$1@mach.vub.ac.be>
Organization: MonadNet
Date: Fri, 2 Oct 1998 10:15:36 -0400
From: rick tait <rickt@gnu.org>
To: Eric Luyten <eluyten@vub.ac.be>
Subject: Re: System-wide CDE language default : where ?

On 28 Sep 1998, Eric Luyten wrote:

> (Yes, I read the Solaris FAQ.)
>
> CDE offers the user a language selection at login time.
>
> This choice is subsequently kept in /var/dt/sdtlogin
> on an hostname basis.
>
> Q: Where do I find the system-wide default in Solaris 2.6 / CDE 1.2 ?
>
>
>
> Subsidiary question : what is supposed to be the access
> mask on directories /var/dt, /var/dt/appconfig and
> /var/dt/appconfig/appmanager ?
>
> I thought it had to be dwrxr-xr-x but one of our systems
> has a more 'open' setting which gives me this not-too-good
> feeling of insecurity.
> -- 
> Eric Luyten, VUB/ULB Computing Centre.



Use /etc/dt/config/Xconfig and put something like this in it:

Dtlogin*language:          <lang>

/rickt


 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.sys.hp.hpux
Message-ID: <361B2E28.1C8B8F1B@germany.agfa.com>
Date: Wed, 07 Oct 1998 11:02:32 +0200
References: <m3g1d18w1f.fsf@satch.markl.com>
Organization: Agfa-Gevaert AG
From: Johann Pfefferl <Johann.Pfefferl.JP@germany.agfa.com>
Subject: Re: XDM & replacing CDE w/ fvwm


Mark Lehrer wrote:
>
> Hello!
>
> I am trying to use a standard X server to connect via XDMCP to an HP-UX
> system that takes me into CDE.
>
> I installed both a .xinitrc and .xsession file which start fvwm but
> unfortunately I still get CDE.  How can I correct this?
>

You have to edit the file $HOME/.dtprofile and add the line

SESSIONTYPE=xdm

If you insert this line, the users .xsession file is sourced during login.

Hope this helps,
  Johann Pfefferl

-- 
----------------------------------------------------------------------------
Dipl.-Ing. Johann Pfefferl

Agfa-Gevaert AG                                       Tel.: +49 89 6207-3524
GF Laborgeraete, Entwicklung Elektronik (LG-EE)       Sek.: +49 89 6207-3362
Tegernseer Landstr. 161                               Fax : +49 89 6207-7279
D-81539 Muenchen                  mailto:JOHANN.PFEFFERL.JP@germany.agfa.com
----------------------------------------------------------------------------


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.questions
Message-ID: <slrn7e023f.350.smallshaw@ug034.cs.man.ac.uk>
References: <7bodbd$c7l$1@nnrp1.dejanews.com>
Organization: Dept of Computer Science, University of Manchester, U.K.
Date: 5 Mar 1999 16:38:08 GMT
From: Andrew Smallshaw <smallshaw@cs.man.ac.uk>
Subject: Re: xterm-color

On Fri, 05 Mar 1999 10:57:52 GMT, _tosch_@yahoo.com wrote:
>
> does anybody know wether it's possible to change the back- and foreground-
> color of an already existing xterm ?

editres can do this.

--
Andrew Smallshaw
smallshaw@cs.man.ac.uk


 /////////////////////////////////////////////////////////////////////////////

Message-ID: <7fo547$mgm@drn.newsguy.com>
References: <7fnho9$h7m@drn.newsguy.com>
             <19990422170248.12539.00000245@ng02.aol.com>
Date: 22 Apr 1999 14:42:31 -0700
Organization: Newsguy News Service [http://www.newsguy.com]
Newsgroups: comp.unix.solaris, comp.windows.X
From: kim@nospam
Subject: Re: how to find what fonts current xterm is using??

In article <19990422170248.12539.00000245@ng02.aol.com>, leenmi@aol.com says...
>
>>thanks for the suggestions, but I get this error:
>>
>>$xfd -fn "-dt-interface user-normal-*"
>>Warning: Cannot convert string "-dt-interface user-normal-*" to type
>>FontStruct
>>xfd:  no font to display
>>
>

>i must have gotten the syntax of the dt alias wrong.
>use xfontsel. this should pull up a gui that you can plug each value into.
>start with dt, then interface user, etc, etc..when you are done, you can use
>the xfd -fn <whatever you came up with> if it doesn't already tell you in the
>gui.
>
>lee

Ok, thanks, I did that, now I type:

$xfd -fn "-dt-interface user-*-*-normal-*-*-*-*-*-*-*-*-*"

and this works, I get a window show up, with this at the very top:

-B&H-LucidaTypewriter-Bold-R-Normal-Sans-19-190-75-75-M-110-ISO8859-1

Which when I create an xterm using the above as its font (i.e. xterm -fn ...)
it comes up with what looks like the same font I had on my earlier xterm,

but much larger size. So I changed the number '19' above to '10' and it can't
find size 10 (or 12).

The intersting thing, is when I want to start emacs using that same font,
I get an error that font is not defined:

$emacs -fn
"-B&H-LucidaTypewriter-Bold-R-Normal-Sans-10-190-75-75-M-110-ISO8859-1"

Font `-B&H-LucidaTypewriter-Bold-R-Normal-Sans-10-190-75-75-M-110-ISO8859-1' is
not defined

But when I do

$xterm -fn
"-B&H-LucidaTypewriter-Bold-R-Normal-Sans-10-190-75-75-M-110-ISO8859-1"
xterm:  unable to open font
"-B&H-LucidaTypewriter-Bold-R-Normal-Sans-10-190-75-75-M-110-ISO8859-1", trying
"fixed"....

xterm is smart to try 'fixed' ?

any way, I am all confused now. it looks like that font with size '10' is
not there. and the one it told me what I had on dt is too large. (the size 19)

any way, thanks for the help, I give up, X is too hard :( it should not be
this hard to find what font one is using!

Kim

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.terminals, comp.os.linux.x, comp.windows.x.apps,
    comp.unix.sys5.r4
References: <10f2b9f3.0110110840.7d2bd451@posting.google.com>
    <3BC696A9.F4F10644@uk.thalesgroup.com>
    <10f2b9f3.0110120612.3f5f6155@posting.google.com>
Message-ID: <20011012_103737@stratagy.com>
Date: 12 Oct 2001 10:37:37 -0400
From: K. L. Oppenheim <klop@list.stratagy.BOGUS-BIT.com>
Subject: Re: newbie question:How to set xterm options dynamically

In message <10f2b9f3.0110120612.3f5f6155@posting.google.com>,
Umang <umkumar@hotmail.com> objected to a suggestion:
>
> Paul Williams <flo@uk.thalesgroup.com> wrote in message3BC696A9.F4F106$
> > Umang wrote:
> > >
> > > Hi,
> > > I want to set xterm options dynamically.
> > > how do I make this work(maybe in my .cshrc..?) when i rlogin to
> > > another machine and I want the title and icon name changed to
> > > reflect the current machine name?
> > 
> > This is a FAQ: see "How do I set the title?" in
> > http://dickey.his.com/xterma/xterm.faq.html
> > http://dickey.his.com/xterm/
> 
> By Title I mean the window title..this "How do I set the title?"
> [The FAQ] is about the prompt..PS1..
>
> Suppose I have several xterms iconified (all having sessions from
> different machines I have rlogin'd to..)..I want the machine name to
> show up on the Icon(and the window title too if possible).


Paul Williams did point to the answer you were looking for.

If the FAQ phrases the answer in a way that is too complicated,
try this very simple shell script, which is named "title":


    #!/bin/sh
    #
    printf "\033]0;$1\007"


If you invoke this as

    $ title 'Red Sky'
 
then your xterm will be entitled 'Red Sky'.

-- 
klop(at)list.Stratagy.com

 //////////////////////////////////////////////////////////////////////////////

Message-ID: <3D4FB657.2020309@post.rwth-aachen.de>
Organization: Aachen University of Technology (RWTH)
Date: Tue, 06 Aug 2002 13:43:19 +0200
From: Marck Lumey <Marck.Lumey@post.rwth-aachen.de>
Subject: Re: newbie question:How to set xterm options dynamically

Umang <umkumar@hotmail.com> wrote:
>>
>>Suppose I have several xterms iconified (all having sessions from
>>different machines I have rlogin'd to..)..I want the machine name to
>>show up on the Icon(and the window title too if possible).


You can use :

xterm -geometry 80x12+0+0 -T "title" -e  ssh/slogin machine.xxx.xxx.xx  &


 //////////////////////////////////////////////////////////////////////////////

[Archiver's Note:]

Here follows a section of code I put in my ~/.cshrc file (Solaris)
or my ~/.tcshrc file (Mac OS X) to make the terminal-screen title
always reflect the current connected machine and working directory,
on whichever desktop I'm using.  (It also indicates a root session.)
The script could probably be improved.  Anyway, this works.


if (! (-x /usr/xpg4/bin/id ) ) then
	set whatuid = "`/usr/bin/id -u`"
else
	set whatuid = "`/usr/xpg4/bin/id -u`"
endif

if ( $whatuid == "0" ) then
	alias setprompt 'set prompt="`hostname`:${cwd:t}# "'
else
	alias setprompt 'set prompt="`hostname`:${cwd:t}% "'
endif

if (! (${?TERM_PROGRAM})) then
	set TERM_PROGRAM = $term
endif

if (($term == xterm) || (${TERM_PROGRAM} == Apple_Terminal))  then
	alias	cd	\
	'chdir \!* && setprompt && printf "\033]1;`hostname`\007\033]2;`hostname`:${cwd:t}\007"'
else
	alias cd	'chdir \!* && setprompt '
endif

if (-x	/opt/sfw/bin/resize ) then
	/opt/sfw/bin/resize
endif


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <1161239251.106669.123410@b28g2000cwb.googlegroups.com>
    <20061019083954.GF4122@implementation.labri.fr>
Message-ID: <12jek36hm5onqe1@corp.supernews.com>
Date: Thu, 19 Oct 2006 10:16:06 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: SecureCRT + Window Title

Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
>
> andrew.sammut@gmail.com, le Wed 18 Oct 2006 23:27:31 -0700, a crit :
>>
>> Is there are way in VB to set the title of a window?
>> Is there a bash escape sequence that will allow this to happen?


> That depends on the terminal.

> It is usually "\033]0;the title\033\\"


It should be, but more often the string terminator is ^G than ESC \


-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/


 //////////////////////////////////////////////////////////////////////////////


Message-ID: <7qdquh$hlj$1@nnrp1.deja.com>
References: <7pjmsq$p6b$1@nnrp1.deja.com>
<pOdv3.3139$qt5.78825@iad-read.news.verio.net> <7pqnql$en8$1@nnrp1.deja.com>
<DJ8w3.62$SC5.6051@iad-read.news.verio.net> <7ptkbc$ipk$1@nnrp1.deja.com>
<_gBw3.692$SC5.31477@iad-read.news.verio.net>
Date: Mon, 30 Aug 1999 11:46:26 GMT
From: prudek@my-deja.com
Newsgroups: comp.os.linux.x
Subject: Re: ANSI terminal F-keys



> > So this is done in terminfo.src? Another point, this application running
>
> no (I understood your question was for xterm): in your X resources file,
> e.g., $HOME/.Xdefaults
>
> -- there are some examples of translations in my faq, and in the xterm
> manpage.

Sorry, I made it confusing. I need to do these things at the same time:
- translate chars from one encoding to a different one.

- support standard ANSI F-key mapping.

It is not much important which program does it. It could be xterm, it
could be another X program, it could be console telnet-like program
(best solution). It should not be on the system level, because I only
need char encoding translation when connecting to that particular host.

terminfo.src looks terribly complicated to me. Any easier way?


 //////////////////////////////////////////////////////////////////////////////

Message-ID: <aXuy3.561$kf5.38238@iad-read.news.verio.net>
Date: Mon, 30 Aug 1999 12:38:30 GMT
From: "T.E.Dickey" <dickey@shell.clark.net>
Newsgroups: comp.os.linux.x, comp.terminals
Subject: Re: ANSI terminal F-keys

prudek@my-deja.com wrote:

>> > So this is done in terminfo.src? Another point, this application running
>>
>> no (I understood your question was for xterm): in your X resources file,
>> e.g., $HOME/.Xdefaults
>>
>> -- there are some examples of translations in my faq, and in the xterm
>> manpage.

> Sorry, I made it confusing. I need to do these things at the same time:
> - translate chars from one encoding to a different one.
> - support standard ANSI F-key mapping.

But there is no "standard ANSI F-key mapping"


> It is not much important which program does it. It could be xterm, it
> could be another X program, it could be console telnet-like program
> (best solution). It should not be on the system level, because I only
> need char encoding translation when connecting to that particular host.

The terminal (or emulator) which you are running is what determines the
type of terminal, not the host.

> terminfo.src looks terribly complicated to me. Any easier way?

terminfo.src is just a lot of terminal entries.  Use infocmp to display one,
tic to modify.

--
Thomas E. Dickey
dickey@clark.net

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.os.linux.x,comp.terminals
References: <7pjmsq$p6b$1@nnrp1.deja.com>
    <pOdv3.3139$qt5.78825@iad-read.news.verio.net>
    <7pqnql$en8$1@nnrp1.deja.com> <DJ8w3.62$SC5.6051@iad-read.news.verio.net>
    <7ptkbc$ipk$1@nnrp1.deja.com> <_gBw3.692$SC5.31477@iad-read.news.verio.net>
    <7qdquh$hlj$1@nnrp1.deja.com> <aXuy3.561$kf5.38238@iad-read.news.verio.net>
    <7qgid0$h1k$1@nnrp1.deja.com>
Message-ID: <5ZSy3.1141$kf5.60381@iad-read.news.verio.net>
Organization: Clark Internet Services, Inc., Ellicott City, MD USA
Date: Tue, 31 Aug 1999 15:58:57 GMT
From: T.E.Dickey <dickey@shell.clark.net>
Subject: Re: ANSI terminal F-keys

In comp.os.linux.x prudek@my-deja.com wrote:

>> > - translate chars from one encoding to a different one.
>> > - support standard ANSI F-key mapping.
>>
>> But there is no "standard ANSI F-key mapping"


> OK, you pointed it is sco ansi.

that is what the function keys look like - though there's no guarantee
that the rest of the emulator behaves that way.

>> The terminal (or emulator) which you are running is what determines the
>> type of terminal, not the host.

> Yes. I wonder if changing terminfo.src and recompiling ncurses (I
> presume I must recompile it, correct?) will make remote host work fine,
> but may render F-keys unusable for local software?

no - that's not really related -

> In other words, maybe I can add neccessary data to terminfo.src under
> some token name (like scoansi) and then use any terminal software
> telling it to use scoansi, and everything will be ok?

it won't make your emulator send the right F-key control strings.

(if your application is running on another host, changing ncurses won't
change anything).

--
Thomas E. Dickey
dickey@clark.net


 //////////////////////////////////////////////////////////////////////////////

Message-ID: <37c6ce23.973131108@news.bellglobal.com>
References: <37c42f38.801340076@news.bellglobal.com>
<37C6A981.7EB214CE@csc.com> <37c6c86a.971666212@news.bellglobal.com>
Organization: Bell Solutions
Date: Fri, 27 Aug 1999 17:49:12 GMT
From: Lew Pitcher <pitchl@tdbank.ca>
Newsgroups: comp.windows.x.apps
Subject: Re: X tools for OS/390 Unix System Services


On Fri, 27 Aug 1999 17:26:36 GMT, pitchl@tdbank.ca (Lew Pitcher) wrote:
>
> At least some of it is there already...
>
> The Java support on OS/390 includes java swing, and so long as you have an X
> server on your workstation, Java graphical applications work beautifully.
> Which is why my alternative was a set of Java clients.
>
> There was a RedBook on porting applications from Unix to OS/390 USS that
> made mention of the difficulties in implementing X client apps on OS/390,
> implying that it *had* been done, but not publishing the details.
>
> I'd guess that X client support is available, but only to developers within
> IBM (i.e. the Java porting team).
>
>
> On Fri, 27 Aug 1999 10:06:42 -0500, Brian Phillips <bphillip@csc.com> wrote:
>
>>Lew,
>>
>>No X for OS/390 right now.  I haven't seen it in any "Statements of Direction"
>>or other announcements, so AFAIK, Big Blue isn't even planning to offer it. 
>>If they are, it's probably YEARS away.
>>
>>Unless an IBM developer has insider information to the contrary (and is
>>allowed to tell us), the best way to get what you're looking for is probably
>>to write and debug the code on your workstations using your preferred
>>desktop GUI & editor and then ftp it up to the mainframe.
>>
>>Regards,
>>Brian P.
>>
>>--
>>* *  73 de KC5OQG  * *
>>my other PC is a S/390
>>
>>
>
>
>Lew Pitcher
>System Consultant, Integration Solutions Architecture
>Toronto Dominion Bank
>
>(pitchl@tdbank.ca)


 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |


Followup:

I went back to the redbook ("Networked Applications on OS/390 Unix",
SG24-5447-00) and reread the sections relating to X tools. They indeed
had a pointer to an OS/390 native xterm implementation (source and
executable) at

   ftp://grateful.rtpnc.epa.gov/public/xterm/

It looks like I have to reread the manual in detail <vbg>


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.programmer
Message-ID: <39872A3C.613875FE@rtfm.net>
References: <398695CF.CFBBA872@Dresdner-Bank.com>
NNTP-Posting-Host: 216.112.254.233
Date: 01 Aug 2000 15:48:35 EDT
From: Nathan Dorfman <nathan@rtfm.net>
Subject: Re: piping to xterm -e

"Uwe Doetzkies (@ Project)" wrote:
>
> i want to control a simple dialog application. it works like:
>
> echo '1\n3\n2\n' | menu_app
>
> because menu_app writes a lot of noise to the terminal an i have to
> repeat the application many more times (with various echoes) i want run
> it in it's own terminal:
>
> xterm -T Application -fn lutrs10 -display 80x20-0-0 -e echo '1\n3\n2\n'
> | menu_app
>
> unfortunately this doesn't work like intended.
>
> okay: one solution is to write a script containing this command line and
> call this script. but is there an easier way?


xterm -e sh -c "echo 'l\n3\n2\n' | menuapp"


-- 
Nathan Dorfman <nathan@rtfm.net>                [http://www.rtfm.net]
"The light at the end of the tunnel is the headlight of an approaching
train." --/usr/games/fortune

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.solaris,comp.unix.programmer,comp.terminals
Message-ID: <Pine.LNX.4.58.0509020043090.606@asie.ens-lyon.fr>
References: <1125362705.805440.53770@f14g2000cwb.googlegroups.com>
X-X-Sender: sthibaul*asie.ens-lyon.fr
Reply-To: Samuel Thibault <samuel.thibault*fnac.net>
NNTP-Posting-Date: 1 Sep 2005 22:46:28 GMT
NNTP-Posting-Host: asie.ens-lyon.fr
Organization: Ecole Normale Superieure de Lyon, France
Date: Fri, 2 Sep 2005 00:46:26 +0200
From: Samuel Thibault <Samuel.Thibault*ens-lyon.fr>
Subject: Re: how to start new term at runtime

On Tue, 29 Aug 2005, BM Sundar wrote:
>
> I want to redirect the debug statements of my programme
> running in one window to another new window at runtime.
> but I couldnt find a way for opening a window at runtime.
>
> Is that possible to do that ?
> If its a system call then it would be better..
> Also it need to support xterm, vt100..

You may create a socketpair, fork, set the socket as stdin/stdout/stderr,
and then exec

    xterm -S//0

for letting xterm read its output from stdin and send key presses to
stdout (hence you can send to and get data from the other end of the
socketpair).

Regards,
Samuel

 //////////////////////////////////////////////////////////////////////////////

References: <8vqvrv$b8p$1@news4.isdnet.net>
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX)
Date: 26 Nov 2000 17:12:54 GMT
Organization: RadixNet Internet Services
Newsgroups: comp.terminals
Message-ID: <8vrgam$obn$1@news1.Radix.Net>
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: [termcap or terminfo] how to know what's on the screen ?

Thomas Baruchel <baruchel@libertysurf.france> wrote:
>
> What makes me think it's possible is that if you use the curses and
> use initscr(), and later endwin(), you see the old state of the screen back;
> I tried to look in the source of ncurses (to see how initscr() and endwin()
> act to to this, but I didn't understand.

you're probably using xterm (which maintains two screens, denoted "normal" and
"alternate" - some people use terminal descriptions which switch to the
alternate screen when running fullscreen applications such as curses - and some
dislike the feature).

it's independent of curses/ncurses

--
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.sys.hp.hpux
Organization: Citrix Systems (UK) Ltd
Message-ID: <3A1E3A3E.72F6C9FF@eu.citrix.com>
References: <3A1CB9BA.94423D97@atc.co.at> <3a1da58f@naylor.cs.rmit.edu.au>
            <3A1CD5B3.D5B5A01D@eu.citrix.com>
Date: Fri, 24 Nov 2000 09:51:58 +0000
From: David Peter <dave.peter@eu.citrix.com>
Subject: Re: colour of cursor in xterm window

Michael John Macaskill wrote:
>
> Sorry, I meant the mouse cursor, which is a hard-to-see grey colour by default
>
> David Peter <dave.peter@eu.citrix.com> wrote:
> > man 1 xterm shows that you should use the -cr option. E.g. xterm -cr
> > green.
>
> > Michael John Macaskill wrote:
> >>
> >> Does anybody out there know how to change the colour of the cursor in an
> >> xterm window to say red, so I can SEE the thing?
> --
> Mike Macaskill
> Student Number 9903589V


Use the -ms option or use the pointerColor resource.

-- 
David Peter <dave.peter@eu.citrix.com>

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: alt.sys.sun
Reply-To: glenn@lightning.nsc.com
Date: Fri, 27 Aug 1993 11:51:26 GMT
From: glenn@lightning.nsc.com (Glenn Newell)
Subject: Re: Trying to use xterm with OW3 & Sun Type-4


In article 18962@exu.ericsson.se, exukenc@exu.ericsson.se
 (Ken Corey,T/TF,75841) writes:
> Can anyone remember how to get cut & paste to work between an xterm and
> an Open Windows 3 environment?
>
>-Ken
>---
>exukenc == Ken Corey, 214/907-5841 : Speaking for the Americans...all of `em.



In .Xdefaults or the XTerm file in the app-defaults dir:

XTerm*VT100.Translations: #override \
        <Key>L6:select-set(CLIPBOARD)\n\
        <Key>L8:insert-selection(CLIPBOARD)
 
To go from xterm to mailtool (as an example):

1) Highlight with left mouse button
2) Press copy
3) move mouse to mail tool
4) Press Paste

To go from mail tool to xterm:

1) Highlight as in openwindows
2) Press copy
3) Move mouse to xterm
4) Press the middle mouse button

Anybody know how to do this for xedit? xless?

---


--------------------------------------------------------------------------------
Glenn Newell                   I am not an official spokesman for National
National Semiconductor         Semiconductor. All the above are my own opinions
glenn@lightning.nsc.com        (and probably wrong!). Use at your own risk.
voice (408)721-4291            ------------------------------------------------
fax (408)721-4785


 //////////////////////////////////////////////////////////////////////////////

Date: 18 Apr 2001 20:38:44 GMT
Organization: Florida State University Department of Mathematics
Newsgroups: comp.unix.solaris
Message-ID: <9bku0k$kg5$1@news.fsu.edu>
From: Steve Bellenot <bellenot@math.fsu.edu>
Subject: Re: Default settings for Xterm (without .Xdefaults)

In article <3ADDF4B6.8B3393F3@ntl.inf.com>,
Shankar  <sankara@ntl.inf.com> wrote:
>
>Hello ,
>  I m  using a Sun-Solaris SPARC  5.6  machine. When i open 'xterm' it
>comes up  with some default colour ,font and geometry. I want to see
>,where the default settings is defined. I dont have any default files
>(like  .Xdefaults)  in my $HOME  .

Truss is your friend. `truss xterm' will show you where xterm is looking
for its defaults. On my 5.7 machine it trys a number of places and
finally finds /usr/openwin/lib/app-defaults/XTerm. 

-- 
http://www.math.fsu.edu/~bellenot
bellenot <At/> math.fsu.edu 
+1.850.644.7189 (4053fax)

 //////////////////////////////////////////////////////////////////////////////

User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Crater Lake)
References: <3ADDF4B6.8B3393F3@ntl.inf.com>
Date: Wed, 18 Apr 2001 20:43:14 GMT
Organization: Telcordia
Newsgroups: comp.unix.solaris
Message-ID: <m3hezm0wix.fsf@cc253090-a.sumt1.nj.home.com>
From: Dan Espen <dane@mk.telcordia.com>
Subject: Re: Default settings for Xterm (without .Xdefaults)

Shankar <sankara@ntl.inf.com> writes:

> Hello ,
>   I m  using a Sun-Solaris SPARC  5.6  machine. When i open 'xterm' it
> comes up  with some default colour ,font and geometry. I want to see
> ,where the default settings is defined. I dont have any default files
> (like  .Xdefaults)  in my $HOME  .

On Solaris 8:

mork> truss xterm 2>&1| grep app
access("/usr/openwin/lib/X11/app-defaults/XTerm", 4) = 0
stat("/usr/openwin/lib/X11/app-defaults/XTerm", 0xFFBEC978) = 0
open("/usr/openwin/lib/X11/app-defaults/XTerm", O_RDONLY) = 5

-- 
Dan Espen

 //////////////////////////////////////////////////////////////////////////////

Date: Mon, 07 May 2001 19:52:40 GMT
Organization: Genuity, Cambridge, MA
Newsgroups: comp.unix.questions
Message-ID: <b2DJ6.16$Bv4.737@burlma1-snr2>
From: Barry Margolin <barmar@genuity.net>
Subject: Re: Losing X-windows when doing login...

In article <3af6f1fa@news.ColoState.EDU>,
Guillaume Dargaud <dargaud@sung3.ifsi.rm.cnr.it> wrote:
>
> I'm in the middle of an X-windows session (using a PC client onto an SGI
> machine). Works fine. If I login as another user, I lose the ability to open
> X-windows.

Are you using xauth security?  If so, the other user's ~/.xauthority file
won't contain the key that allows him to open windows on your display.  You
can use "xauth list" before logging in as the other user, and then "xauth
add <paste data>" after logging in.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Burlington, MA


 //////////////////////////////////////////////////////////////////////////////

PROBLEM:  xterm -e pops up a window that immediately disappears

EXPLANATION:

xterm -e <command> pops up a window, but the window disappears.  How do I use
this option for xterm (or cmdtool, shelltool, or dtterm)?

The -e option creates an xterm (or cmdtool, shelltool, or dtterm) window
which will only run as long as the thing you execute with the -e runs.  In
the case of commands like ls and date, it will exit immediately after the
commands are finished executing.  You can make the xterm stay up longer if
you run a command or script that requires user input (like telnet or ftp) or
that sleeps for a while.  For example, create the following script and make
it executable:

#/bin/sh
echo enter your name
read name

Then run xterm -e <name of script>

The xterm will stay open until you enter your name and press return.  Then it
will exit. 

Kirk Pearson 

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.vms
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <_DOk7.2153$eu.829831327@newssvr11.news.prodigy.com>
Date: Mon, 03 Sep 2001 16:57:30 GMT
From: Terry Murphy <tsm@palindrome.org>
Subject: Small DECterm Font & DECwindows Fonts

I am looking for a small DECterm font that I can use on OpenVMS 7.2 Alpha,
so I can fit a whole DECterm into a 640x480 VNC window. I tried using the
default small font (-DEC-Terminal-Medium-R-Normal--14-*-*-*-*-*-*) but it is
a little bit too big. Whenever I tried any smaller size of that font, I got
an error saying it wasn't available. I tried "fixed", and the size is fine,
but it doesn't support the special DEC fonts. Is there a smaller font I
could use (12 point of the DEC terminal font would definitely work)?

My next question is, where do fonts come from? My DECwindows display is set
to a Linux machine, but even when I enter fonts that are available on that
machine (the 12 point DEC terminal, for example, is available and usable
from the Linux machine) I get an error if they're not available. Typically,
in the Unix world, the font comes from the server side, not the client side,
but here they seem to be coming from the the client side. Is this indeed
true by default, and how can I change it?

Thanks,
Terry


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.vms
Organization: Road Runner
Message-ID: <Pine.LNX.4.31.0109031110130.1440-100000@jaipur>
References: <_DOk7.2153$eu.829831327@newssvr11.news.prodigy.com>
Date: Mon, 03 Sep 2001 18:14:03 GMT
From: Ryan Moore <rmoore@rmoore.dyndns.org>
Subject: Re: Small DECterm Font & DECwindows Fonts

Yes, the fonts live with the X Server just like in Unix.  On the VMS side,
they are stored in SYS$SYSROOT:[SYSFONT...].  Unix and VMS use the same
font file formats, so if you want to transfer fonts back and forth, you
may do so.  I didn't have the DEC terminal fonts on my Linux X server, so
I copied then from the VMS machine to a directory on my Linux box and
added the directory to my font path.

-Ryan


 //////////////////////////////////////////////////////////////////////////////

Date: Tue, 4 Sep 2001 10:46:02 -0400
Organization: Compaq Computer Corporation
Newsgroups: comp.os.vms
Message-ID: <RO5l7.1175$bB1.47602@news.cpqcorp.net>
References: <_DOk7.2153$eu.829831327@newssvr11.news.prodigy.com>
From: Fred Kleinsorge <kleinsorge@star.zko.dec.com>
Subject: Re: Small DECterm Font & DECwindows Fonts

Fonts are server side entities.  So when set display to the Linux box, the
font comes from the Linux box.  DECterm may want a font with specific naming
conventions (as well as specific characters in specific places).

-- 
Fred Kleinsorge


[Archiver's Note:  remember that in "X Windows" discussions, the word
 "server" refers to where the screen, keyboard, and mouse live.]

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris, alt.solaris.x86, comp.sys.sun.admin,
    comp.sys.sun.apps
References: <4ebe311b.0110031132.80f9322@posting.google.com>
    <GKnK1J.M5G@cjsa.com> <9pge09$2gda$1@agate.berkeley.edu>
    <ur8sjalq2.fsf@balker.org>
Message-ID: <9pi560$5gm$1@agate.berkeley.edu>
Organization: UC Berkeley CSUA
Date: Thu, 4 Oct 2001 17:10:24 +0000 (UTC)
From: Alan Coopersmith <alanc@CSUA.Berkeley.EDU>
Subject: Re: Solaris 9 Early Access Program

Lars Balker Rasmussen <lars@balker.org> writes in comp.unix.solaris:
|
| alanc@CSUA.Berkeley.EDU (Alan Coopersmith) writes:
|>
|> The OpenLook & Xview libraries are still there so as not to break binary
|> compatibility (as well as all the bits previously called "OpenWindows"
|> that really came from the X11 distribution). The applications/window
|> manager & development tools/headers are all gone.
|
|xterm is gone?  I may have to get violent then.  dtterm is a very poor
|substitute for xterm.  

No, you parsed that wrong (it didn't help that I wrote it unclearly) -
all the bits that are from the standard X11 distribution are still
there, they are no longer considered part of OpenWindows, and not part
of the EOL.  xterm is not only alive and well, it's been updated to
support multibyte character sets, so you no longer need hacks like kterm
for Asian locales.

(General rule, with some exceptions: *tool are gone, x* are not.)

________________________________________________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://soar.Berkeley.EDU/~alanc/           aka: Alan.Coopersmith@Sun.COM
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 //////////////////////////////////////////////////////////////////////////////

(Handy Info from IBM)

http://www.developer.ibm.com/tech/faq/individual/0,,2%3A15735,00.html

Q: What are the differences between aixterm and dtterm?

A: The aixterm was written as a high function terminal (HFT) emulator.
   Therefore, aixterm supports escape sequences and control codes common to
   the HFT.

   The dtterm is specifically a DEC VT220-like terminal emulator
   with extensions such as color support. Also dtterm is based on the
   terminal emulator widget library "libDtTerm" which can be used in adding
   a terminal emulator window to a GUI.


http://www.developer.ibm.com/tech/faq/individual/0,,2%3A14915,00.html

Q: How do you cut and paste from an aixterm graphics window?

A: Hold the right mouse button down and drag it across the text you would
   like to copy. Then use the middle button to paste the text you just copied.


As of autumn 2003, the man page documentation for IBM's version of "dtterm":

    http://www16.boulder.ibm.com/pseries/en_US/cmds/aixcmds2/dtterm.htm

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: alt.sys.sun
From: glenn@lightning.nsc.com (Glenn Newell)
Date: Fri, 27 Aug 1993 11:51:26 GMT
Reply-To: glenn@lightning.nsc.com
Subject: Re: Trying to use xterm with OW3 & Sun Type-4

In article 18962@exu.ericsson.se, exukenc@exu.ericsson.se
  (Ken Corey,T/TF,75841) writes:
>
> Can anyone remember how to get cut & paste to work between an xterm and
> an Open Windows 3 environment?
>
>-Ken
>
>---
>exukenc == Ken Corey, 214/907-5841 : Speaking for the Americans...all of `em.


In .Xdefaults or the XTerm file in the app-defaults dir:

XTerm*VT100.Translations: #override \
        <Key>L6:select-set(CLIPBOARD)\n\
        <Key>L8:insert-selection(CLIPBOARD)
 
To go from xterm to mailtool (as an example):

1) Highlight with left moust button
2) Press copy
3) move mouse to mail tool
4) Press Paste

To go from mail tool to xterm:

1) Highlight as in openwindows
2) Press copy
3) Move mouse to xterm
4) Press the middle mouse button

Any body know how to do this for xedit? xless?

---


--------------------------------------------------------------------------------
Glenn Newell                    I am not an official spokesman for National
National Semiconductor          Semiconductor. All the above are my own opinions
glenn@lightning.nsc.com         (and probably wrong!). Use at your own risk.
voice (408)721-4291            -------------------------------------------------
fax (408)721-4785


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
References: <9q83ub$3sv$1@bcarh8ab.ca.nortel.com>
Message-ID: <9q8mlt$1krs$1@agate.berkeley.edu>
Organization: University of California, Berkeley
Date: Sat, 13 Oct 2001 06:23:57 +0000 (UTC)
From: Alan Coopersmith <alanc@CSUA.Berkeley.EDU>
Subject: Re: How do I change default look of DTTERM?

"news.ca.nortel.com" <rsantink@florida.com> writes in comp.unix.solaris:
|
|My apologies if this has already been posted in one form or another...   How
|do I change the default look of dtterm when it is fired up from anywhere in
|the workspace?  For example, I would like it to start up as follows:
|
|dtterm -fg green -bg black -title MainTerm

Add lines like this to your ~/.Xresources 

Dtterm*foreground: green
Dtterm*background: black
Dtterm*title: MainTerm

(See the dtterm man page for the exact spelling and what other resources
 are available)

-- 
________________________________________________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://soar.Berkeley.EDU/~alanc/           aka: Alan.Coopersmith@Sun.COM
  Working for, but definitely not speaking for, Sun Microsystems, Inc.


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.protocols.kermit.misc, comp.unix.solaris
References: <ajts6m$v0$1@panix1.panix.com>
Message-ID: <ajtsvn$gj1$1@watsol.cc.columbia.edu>
Organization: Columbia University
Date: 20 Aug 2002 13:07:03 -0400
From: Frank da Cruz <fdc@columbia.edu>
Subject: Re: Problem switching from (ancient) shelltool to CDE's dttool
    (sol 9!)

In article <ajts6m$v0$1@panix1.panix.com>,
David Combs <dkcombs@panix.com> wrote:
:
: I just got a sunblade100, and have installed on it
: the just-released Solaris 9.  Nice OS, lots of
: nifty features, I'm told.
: 
: However, one big problem: no more support
: for shelltool, which, after years of threats
: from Sun, doesn't exist on 9.  (I'm now wearing
: a black armband!)
: 
: (I've read, in comp.unix.solaris, that you can't (either
: easily, or at all), move the solaris-7 (or 8) shelltool
: executable to 9 and have it work, because Sun has also
: removed various other things that are needed for
: shelltool to run.)
: 
: Anyway, it doesn't work too well; I think the
: immediate problems can be boiled down to solving
: this one problem:

Define "it".  First you said you could not use shell tool
on Solaris 9, so what are you using instead?  dttool?
xtool? ...


: (1) You say "ls -ls", and the screen (at my "shell
: account" at the other end, to which I'm dialing into via
: kermit) fills with, uh, ls-lines.
: 
: Now do "vi some-file" -- all those ls-lines are still
: there, just overlaid by the "black" chars in some-file.
: 
: You hit ^L -- nothing happens.
: 
: You exit or ^Z vi, and try ^L again; still nothing.
: 
: You type the cmd "clear"; nothing happens.

This would suggest that whatever you are using for a terminal
emulator on Solaris 9 is not the same terminal type as the
one you get with shell tool.  AND/OR that the host doesn't know
what type of terminal it is (what does "echo $TERM" on the
host say?) OR that the host has the terminal name but doesn't 
support it.  Or it supports it, but not correctly, etc etc.


: (Could I 'research" this myself?  Doubtful --
: I've *never* yet been able to comprehend the
: ins and outs of serial communications, so much
: so that even after a few years of using kermit
: for my isp connection, I still get neither color
: nor eg french accents.  Maybe you have a cookbook
: way to enable that stuff, *without* my having to
: understand what's behind it?)

C-Kermit has a manual that explains this stuff in great detail,
complete with pictures.

For French accents, you have to get C-Kermit to (a) use 8-bit
characters ("set terminal byte 8") and (b) convert whatever
character-set the remote host uses for French to whatever
character-set your terminal emulator uses.

For color, your terminal emulator (blah tool) has to support
it and the host needs to be told what kind of terminal you have
and needs to have a termcap/terminfo entry that knows about its
color capabilities AND applications that use that
termcap/terminfo (e.g. color ls) to do color presentations.

- Frank

 //////////////////////////////////////////////////////////////////////////////

As of fall 2001, WRQ has technical notes on mapping the Backspace
key in the Reflection X product (X server/display):

The general Unix case:

    http://support.wrq.com/techdocs/3001.html

RedHat Linux:

    http://support.wrq.com/techdocs/1516.html

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.protocols.kermit.misc, comp.unix.solaris
References: <ajts6m$v0$1@panix1.panix.com>
Message-ID: <ajtu9t$vss$1@agate.berkeley.edu>
Organization: University of California, Berkeley
Date: Tue, 20 Aug 2002 17:29:33 +0000 (UTC)
From: Alan Coopersmith <alanc@CSUA.Berkeley.EDU>
Subject: Re: Problem switching from (ancient) shelltool to CDE's dttool (sol 9!)

dkcombs@panix.com (David Combs) writes in comp.unix.solaris:
|
|By the way, my problem is *urgent* -- I can't
|switch over to the blade100, with its just-installed
|solaris 9, until I can successfully dttool
|(or xtool or whatever, with sun having finally
|swiped suntool).

Do you mean dtterm & xterm?  There is no dttool & xtool.  ( *tool was
the OpenLook Deskset naming convention.  CDE uses dt* for standard CDE
programs and sdt* for Solaris CDE extensions.  X simply uses x* for
program names.)


|(I've read, in comp.unix.solaris, that you can't (either
|easily, or at all), move the solaris-7 (or 8) shelltool
|executable to 9 and have it work, because Sun has also
|removed various other things that are needed for
|shelltool to run.)

Actually, I think it might, if you install the SUNWol* packages.  I've
heard of people doing it, but never tried myself.


|(1) You say "ls -ls", and the screen (at my "shell
|account" at the other end, to which I'm dialing into via
|kermit) fills with, uh, ls-lines.
|
|Now do "vi some-file" -- all those ls-lines are still
|there, just overlaid by the "black" chars in some-file.
|
|You hit ^L -- nothing happens.
|
|You exit or ^Z vi, and try ^L again; still nothing.
|
|You type the cmd "clear"; nothing happens.

Are you setting your terminal type correctly on the other end?  It
should be dtterm or xterm or vt100.  If I remember correctly shelltool
used a TERM of "sun".

-- 
________________________________________________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://soar.Berkeley.EDU/~alanc/           aka: Alan.Coopersmith@Sun.COM
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
Message-ID: <ybtad7ak3iy.fsf@isis.visi.com>
References: <ddf392ea.0311050944.d0eb9a0@posting.google.com>
Organization: VISI.com
Date: Wed, 05 Nov 2003 13:40:21 -0600
To: Shiva MahaDeva <contracer11@uol.com.br>
From: Anton Rang <rang%visi.com>
Subject: Re: Setting 132 columns in Solaris

contracer11%uol.com.br (Shiva MahaDeva) writes:
>
> How could I setting a terminal emulator to 132 columns in Solaris, 
> like I issue "SET TERMINAL/WIDTH=132" in OpenVMS ?

The command

  $ stty columns 132

will change it on the host side.  There isn't a standard way to send
the command sequence to request that the terminal automatically switch
as well, though.

Anton

 ..............................................................................

Newsgroups: comp.unix.solaris, comp.terminals, comp.os.linux.questions
NNTP-Posting-Host: list.stratagy.com
References: <ddf392ea.0311050944.d0eb9a0@posting.google.com>
Message-ID: <rshu_20031107_050607@stratagy.com>
Organization: The Late, Great Stratagy Users Group
Date: Fri, 7 Nov 2003 05:06:07 -0500
From: Richard S. Shuford <shuford*list.stratagy.com>
Subject: Re: setting 132 columns in Solaris (screen width)

Shiva MahaDeva <contracer11%uol.com.br> wrote:
| 
| How could I setting a terminal emulator to 132 columns in Solaris,
| like I issue "set terminal/width=132" in OpenVMS ?

Anton Rang <rang%visi.com> replied:
> 
> The command
>  $ stty columns 132
> will change it on the host side.  There isn't a standard way to send  
> the command sequence to request that the terminal automatically switch
> as well, though.


The VMS DCL command  "SET TERMINAL/WIDTH=132" does two things:

 (1) set the operating system's opinion of the terminal's width to 132 columns

 (2) send an Escape sequence that causes a DEC VTx00 terminal to configure its
     screen buffer to actually display 132 characters horizontally

The above Unix command "stty columns 132" performs only (1).

For thing (2), while there is no "de jure" ANSI standard for switching the   
visible screen width, there is yet a widely implemented mechanism, based    
on the control codes implemented  in the DEC VT220 video terminal (and in
later DEC terminal products).

If "xterm" is being used, then the "Allow 132/80 Column Switching" option must
be enabled from the "VT Options" menu.  (This screen menu is accessed by holding
down the Control key and pressing the middle mouse button.)  Then some software
running on the Unix host can cause (2) to happen by sending the DECCOLM Escape
sequence:

    Esc [ ? 3 h

In Solaris, the "some software" may consist of this simple shell command:

    $ printf "\033[?3h"

The control sequence to reset/clear the screen size back to 80 columns is:

    Esc [ ? 3 l

so the 80-column shell command is:

    $ printf "\033[?3l"

(where 'l' is a lowercase 'L').

Finally, you must reset the operating system's opinion to 80 columns like this:
 
    $ stty columns 80

 ..RSS

 ..............................................................................

Newsgroups: comp.unix.solaris, comp.terminals, comp.os.linux.questions
NNTP-Posting-Host: list.stratagy.com
References: <ddf392ea.0311050944.d0eb9a0@posting.google.com>
    <rshu_20031107_050607@stratagy.com> <bohd9e$hl4$2@news1.radix.net>
Message-ID: <rshu_20031108_151515@stratagy.com>
Organization: The Late, Great Stratagy Users Group
Date: Sat, 8 Nov 2003 15:15:15 -0500
From: Richard S. Shuford <shuford*list.stratagy.com>
Subject: Re: setting 132 columns in Solaris (screen width)

Shiva MahaDeva <contracer11%uol.com.br> wrote:
|
| How could I setting a terminal emulator to 132 columns in Solaris,
| like I issue "set terminal/width=132" in OpenVMS ?

Then Richard S. Shuford wrote:
> 
> For thing (2), while there is no "de jure" ANSI standard for switching the
> visible screen width, there is yet a widely implemented mechanism, based
> on the control codes implemented  in the DEC VT220 video terminal (and in
> later DEC terminal products).

And then Thomas Dickey <dickey%saltmine.radix.net> wrote:
+ 
+ But on Solaris, the supported terminal program (so I'm told) is dtterm.
+ That recognizes also a different escape sequence.  Oddly Solaris' xterm
+ doesn't seem to recognize this....
    

Recent releases of Solaris have included Sun-supported versions of  
both "xterm" and "dtterm".  However, with Sun moving away from the
committee-compromise "Common Desktop Environment" and toward the 
Gnome windowing environment, the CDE "dtterm" program is becoming   
less important.  (And "cmdtool" is even further out of mind, whereas
Gnome Terminal is becoming more important.)

Noting that Shiva said merely "a terminal emulator", it is not clear
what software is being used.  Possibly it could be some program
running under Windows and not any of the above Unix/Linux packages.
(I picked "xterm" because it is fairly typical of a decent VT100
emulator.)

But, you do raise an issue that I forgot.  By default, the Solaris  
"dtterm" program will ignore the DECCOLM control sequence.  However,
there is an invocation option to make "dtterm" honor DECCOLM, which
the user can choose like this:
    
    $ /usr/dt/bin/dtterm -132

(In Solaris 8 and 9, this is documented in the dtterm man page.)

Another variant control sequence was developed by Digital Equipment   
Corporation for its real DEC VT330 terminals (and is used in later DEC
and/or Boundless terminal models and faithful emulators of them).  To
support multiple screen-page memory in the terminal, DEC invented a      
more generalized screen-sizing feature: the command sequence is called
DECSCPP (DEC Set Columns Per Page).

For switching to 132 columns, the DECSCPP sequence (without the
intervening spaces) would be:
    
    Esc [ 1 3 2 $ |

(Using a Unix shell command to emit the '$' dollar and '|' pipe  
characters, without interpreting them, can require tricky quoting.) 

To reset/clear the VT330 to the default of 80 columns, any of these
work:

    Esc [ $ |
    Esc [ 0 $ |
    Esc [ 8 0 $ |

According to the documentation, the VT330 also supports an analogous
DECSLPP (DEC Set Lines Per Page) control sequence, to allow screen  
pages containing 24, 36, 72, or 144 (!?) lines.

    Esc [ 2 4 t
    Esc [ 3 6 t
    Esc [ 7 2 t
    Esc [ 1 4 4 t

 ...RSS

 ..............................................................................

The special "dtterm" control sequence to set a CDE dtterm window to
24 lines and 132 columns would be

    Esc [ 8 ; 2 4 ; 1 3 2 t

or as a Solaris shell one-liner:

    $ printf "\033[8;24;132t"

(as tested using Solaris 8.)

 ..............................................................................

Newsgroups: comp.unix.solaris, comp.terminals, comp.os.linux.questions
NNTP-Posting-Host: saltmine.radix.net
References: <ddf392ea.0311050944.d0eb9a0@posting.google.com>
    <bohd9e$hl4$2@news1.radix.net> <rshu_20031108_151515@stratagy.com>
    <boljeu$1ki$1@news1.radix.net> <bomlre$20ss$2@agate.berkeley.edu>
Message-ID: <bomq20$7vn$1@news1.radix.net>
Date: 10 Nov 2003 01:36:00 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: setting 132 columns in Solaris (screen width)

In comp.unix.solaris Richard S. Shuford wrote:
> |>
> |> Recent releases of Solaris have included Sun-supported versions of  
> |> both "xterm" and "dtterm".  However, with Sun moving away from the
> |> committee-compromise "Common Desktop Environment" and toward the 
> |> Gnome windowing environment, the CDE "dtterm" program is becoming   
> |> less important.  (And "cmdtool" is even further out of mind, whereas
> |> Gnome Terminal is becoming more important.)

Thomas Dickey writes in comp.unix.solaris:
> |
> |I was more/less aware of that.  There was a comment in this newsgroup
> |a year or two ago regarding a Solaris-specific performance improvement
> |which was in xterm.  (Not detailed enough for me to make the same change,
> |but enough to see that Sun was making changes that aren't in the X/Open
> |version).

In comp.unix.solaris Alan Coopersmith wrote:
>
> For Solaris 2.6 through 8, xterm is basically the X11R6 version.  For
> Solaris 9 it was upgraded to the l18nux.org (now openi18n.org) version,
> with yours/XFree86 supplied on the unsupported freeware companion CD.
> I'm not sure what comment or fix you're referring to, but if there's
> something you think can be of benefit, let me know and I can look to 
> see if there's something there we can contribute.  (We contribute fixes
> to both X.org & XFree86 now, though the process of going through our
> code and finding changes that would be beneficial to contribute is 
> slow going, since it's a lot of work and not our highest priority.
> XFree86 4.4 will contain a number of Sun-contributed fixes and the
> IPv6 work from Sun.)


Alan:

I was recalling one of your postings - but checking now, I'm misquoting it. 
The posting commented that "dtterm" had been modified to use a SolarisIA
extension (makes subprocesses get a priority boost), but went on to say that
"xterm" was not modified.  This was in April 2002.

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.terminals
References: <3c79c079.0@oracle.zianet.com>
Message-ID: <a5d7qo$p84$1@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 25 Feb 2002 11:40:08 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: remapping keys in xterm

Ralph McElmurry <rmcelmurry@compuserve.com> wrote:
>
> I have an database application running on Unixware 2.1.3 which seems to be
> hard coded for the output of the arrow keys by a wy50 terminal. It is not
> using termcap/terminfo.Using an xterm window on the console, the arrow keys
> don't work. The wy50 seems to put out ^h, ^j,^k and ^l. Is there a way to
> remap these keys for an individual xterm window? I have the same problem
> when running on the graphical console with the at386 emulation it has.
> Thanks for any ideas.


you can change the strings sent by xterm's function-keys (cursor keys, etc).
using the translations resource (describe in the xterm manpage).

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com
 ftp://dickey.his.com

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.windows.x, comp.unix.solaris, comp.sys.hp.hpux
References: <3c7e504f.81382892@news.uoguelph.ca>
Message-ID: <3C828D2A.8050201@yahoo.com>
Date: Sun, 03 Mar 2002 15:52:58 -0500
From: caslivkoff@yahoo.com
Subject: Re: Xauth key from Solaris to HP as root

Bosco Tsang wrote:
>
> I would like to X display from HPUX 11 to my Solaris 8 workstation as
> root without success. My Solaris 8 require auth key. I just copy and
> paste over under xauth, and this only work as nornal HPUX user. For
> root, as it don't has home directory, I tried using xauth to add the
> key but it still cannot use the key, Why? Any idea on how to make it
> work?

It sounds like you are doing "su" rather than "su -". Xlib will attempt 
to find a cookie first in $XAUTHORITY (identifing a specific file) then 
$HOME/.Xauthority. With neither variable defined, the cookie will not be 
identified and the connection to the X server refused.

-- 
caslivkoff

 //////////////////////////////////////////////////////////////////////////////

Date: Thu, 02 May 2002 09:32:41 -0500
Message-ID: <17920000.1020349959@[192.168.0.2]>
References: <200205021925.g42JOrg29808@gotham>
From: Pete H.
Subject: Re: ?: xterm vs xterms

Wayne V. wrote:
>
> During a Solaris flash install, I ran into something quaint in the sysidcfg
> file.
> When setting "terminal=xterm", there are serious issues with useability of
> the console. I did an interactive sysidcfg (no file available), selected
> the "xterm" option, and then interrupted the process. I noticed that TERM
> was set to "xterms" (with an added "s"). Using this value in the sysidcfg
> file seems to fix the issue. It is also listed in
> /usr/share/lib/terminfo/x as a valid option.
>
> My question: what is the difference between "xterm" and "xterms"? Is
> there a location where I can get more info about this?  Google and
> "apropos xterms" were not terribly helpful, and some of the Sun BlueBooks
> suggest using the value "xterm" and don't mention the better alternative."


xtermS is Xterm - SMALL.

The terminfo for the standard xterm tries to act as though your screen is 
65 lines long.  That frequently doesn't work for obvious reasons.  xterms 
uses only 24 lines as I recall.

for any other detail of the differences, you should be able to look at the 
terminfo entries directly using infocmp (or even "diff" the two terminfos
with it).

 //////////////////////////////////////////////////////////////////////////////

Message-ID: <200205021949.g42JnFKw009369@thunk>
Date: Thu, 02 May 2002 15:49:15 -0400
To: Pete H., Wayne V.
From: Bill S.
Subject: Re: ?: xterm vs xterms 

> The terminfo for the standard xterm tries to act as though your screen
> is  65 lines long.  That frequently doesn't work for obvious reasons.
> "xterms" uses only 24 lines as I recall.


right, but the screen size in terminfo is supposed to be overridden by
the rows/columns info available through an ioctl on the terminal
device.  An xterm knows how big it is and sets the ioctl accordingly..

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <84c1465c.0206050903.200a370a@posting.google.com>
Message-ID: <ae4oo0$e0n$1@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 11 Jun 2002 12:00:00 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: help-xterm


"javichuXT" ALEXXX(at)teleline.es wrote:
|
| Hello, my english is very slow.
| Why not work the functions key F13 and F14 in Vt220 emulation?
|
| My script is:
|
| xterm -title "VT" -sb -sl 1000 -xrm \
| 'XTerm*VT100.Translations: #override \n\
|                 <Key>Home: string(0x1b) string("[3~") \n \
|                 <Key>End: string(0x1b) string("[4~") \n
|         vt220*VT100.Translations: #override \n\


The fundamental problem is making the resource settings more specific than
the system's app-default file.  For instance I am able to make these settings
work by changing the above lines to

  'XTerm*VT100*Translations: #override \n\
                  <Key>Home: string(0x1b) string("[3~") \n \
                  <Key>End: string(0x1b) string("[4~") \n


| my SO is linux(SUSE8.0),the options scripts is corrects?
| Thank you

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.bsd.freebsd.misc
References: <aiqcbi$162e6j$1@ID-117651.news.dfncis.de>
    <slrnal1nt2.1ucs.&-@jazz.hq.newdream.net>
    <aiqqt5$15uueu$1@ID-117651.news.dfncis.de>
    <slrnal2scj.1ucs.&-@jazz.hq.newdream.net>
    <3D525097.10874143@SPAMFILTERdavepimlott.info>
    <slrnal4n1u.1vtk.&-@jazz.hq.newdream.net>
    <20020808204443.38ab4816.steveo@eircom.net> <aiuosv$2ta$1@news1.Radix.Net>
    <slrnal6cfi.20rn.&-@jazz.hq.newdream.net>
Message-ID: <aj0m9k$a12$1@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 9 Aug 2002 15:15:00 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Eterm termcap entry (was Re: TERM)

Will Yardley <&-@no.spam.veggiechinese.net> wrote:
>
> Speaking of this (sorta), has anyone had luck getting color with the
> "official" Eterm termcap entry? FreeBSD seems to have the "official"
> Eterm termcap entry from 0.9.1, but I don't see color when I'm in Eterm
> (this is why I usually use xterm-xfree86 as the value of TERM, even
> though I'm using Eterm).

> If I ssh to a Linux machine that uses terminfo and has the correct Eterm
> terminfo file, everything works great.

> I remember Thomas explaining the reason for this in the past...
> (something having to do with the limitations of termcap itself);
> wondering if there is a workaround of any sort.


I probably gave a general-purpose answer: termcap entries are generally
limited to 1023 bytes.  The termcap I made for xterm is a compromise between
function-keys and color (gets color and as many function keys will fit).

I have a copy of Eterm 0.9 handy, and am looking at its termcap - see
two obvious problems (it contains two entries, one is "xterm", the other
inherits from that and ansi-pc-color and is called "xterm-color" - but
"ansi-pc-color" is not defined there, and the "xterm" entry is too long).
Seeing the comment about 0.9.1, I got a copy of that, and see that its
termcap only defines "Eterm".  In neither case does the termcap entry
specify the color capabilities (the terminfo files do though).

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.bsd.freebsd.misc
References: <aiqcbi$162e6j$1@ID-117651.news.dfncis.de>
    <slrnal1nt2.1ucs.&-@jazz.hq.newdream.net>
    <aiqqt5$15uueu$1@ID-117651.news.dfncis.de>
    <slrnal2scj.1ucs.&-@jazz.hq.newdream.net>
    <3D525097.10874143@SPAMFILTERdavepimlott.info>
    <slrnal4n1u.1vtk.&-@jazz.hq.newdream.net>
    <20020808204443.38ab4816.steveo@eircom.net> <aiuosv$2ta$1@news1.Radix.Net>
    <slrnal6cfi.20rn.&-@jazz.hq.newdream.net> <aj0m9k$a12$1@news1.Radix.Net>
Message-ID: <slrnal8st0.227g.&-@jazz.hq.newdream.net>
Organization: Newdream Network
Date: Sat, 10 Aug 2002 02:00:01 -0000
From: Will Yardley <&-@no.spam.veggiechinese.net>
Subject: Re: Eterm termcap entry (was Re: TERM)

In article <aj0m9k$a12$1@news1.Radix.Net>, Thomas Dickey wrote:
> Will Yardley <&-@no.spam.veggiechinese.net> wrote:

>> Speaking of this (sorta), has anyone had luck getting color with the
>> "official" Eterm termcap entry? FreeBSD seems to have the "official"
>> Eterm termcap entry from 0.9.1, but I don't see color when I'm in Eterm
>> (this is why I usually use xterm-xfree86 as the value of TERM, even
>> though I'm using Eterm).
 
>> If I ssh to a Linux machine that uses terminfo and has the correct Eterm
>> terminfo file, everything works great.
 
>> I remember Thomas explaining the reason for this in the past...
>> (something having to do with the limitations of termcap itself);
>> wondering if there is a workaround of any sort.


> I probably gave a general-purpose answer: termcap entries are generally
> limited to 1023 bytes.  The termcap I made for xterm is a compromise between
> function-keys and color (gets color and as many function keys will fit).
> 
> I have a copy of Eterm 0.9 handy, and am looking at its termcap - see
> two obvious problems (it contains two entries, one is "xterm", the other
> inherits from that and ansi-pc-color and is called "xterm-color" - but
> "ansi-pc-color" is not defined there, and the "xterm" entry is too long).
> Seeing the comment about 0.9.1, I got a copy of that, and see that its
> termcap only defines "Eterm".  In neither case does the termcap entry
> specify the color capabilities (the terminfo files do though).
 
Hrmm.... The one in the current (stable) FreeBSD release is identical to
the one in Eterm9.1 

I assumed from the first line that this does specify color
capabilities... how would it need to be different?

Eterm|Eterm-color|Eterm with xterm-style color support (X Window System):\
        :am:bw:eo:km:mi:ms:xn:xo:\
        :co#80:it#8:li#24:lm#0:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
        :K1=\E[7~:K2=\EOu:K3=\E[5~:K4=\E[8~:K5=\E[6~:LE=\E[%dD:\
        :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:\
        :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
        :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:\
        :ec=\E[%dX:ei=\E[4l:ho=\E[H:i1=\E[?47l\E>\E[?1l:ic=\E[@:\
        :im=\E[4h:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
        :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
        :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:ke=:kh=\E[7~:\
        :kl=\E[D:kr=\E[C:ks=:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:\
        :me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\
        :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
        :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:\
        :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:


 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.bsd.freebsd.misc
References: <aiqcbi$162e6j$1@ID-117651.news.dfncis.de>
    <slrnal1nt2.1ucs.&-@jazz.hq.newdream.net>
    <aiqqt5$15uueu$1@ID-117651.news.dfncis.de>
    <slrnal2scj.1ucs.&-@jazz.hq.newdream.net>
    <3D525097.10874143@SPAMFILTERdavepimlott.info>
    <slrnal4n1u.1vtk.&-@jazz.hq.newdream.net>
    <20020808204443.38ab4816.steveo@eircom.net> <aiuosv$2ta$1@news1.Radix.Net>
    <slrnal6cfi.20rn.&-@jazz.hq.newdream.net> <aj0m9k$a12$1@news1.Radix.Net>
    <slrnal8st0.227g.&-@jazz.hq.newdream.net>
Message-ID: <aj3m6o$85t$1@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 10 Aug 2002 18:31:52 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Eterm termcap entry (was Re: TERM)

Will Yardley <&-@no.spam.veggiechinese.net> wrote:
> In article <aj0m9k$a12$1@news1.Radix.Net>, Thomas Dickey wrote:
>> termcap only defines "Eterm".  In neither case does the termcap entry
>> specify the color capabilities (the terminfo files do though).
>  
> Hrmm.... The one in the current (stable) FreeBSD release is identical to
> the one in Eterm9.1 

> I assumed from the first line that this does specify color
> capabilities... how would it need to be different?

It must be shortened to make room for something like this (which would make
it otherwise about 40 bytes too long):
 
        :Co#8:pa#64:AB=\E[4%dm:AF=\E[3%dm:op=\E[39m\E[49m:

> Eterm|Eterm-color|Eterm with xterm-style color support (X Window System):\
>         :am:bw:eo:km:mi:ms:xn:xo:\
>         :co#80:it#8:li#24:lm#0:\
>         :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
>         :K1=\E[7~:K2=\EOu:K3=\E[5~:K4=\E[8~:K5=\E[6~:LE=\E[%dD:\
>         :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:\
>         :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
>         :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:\
>         :ec=\E[%dX:ei=\E[4l:ho=\E[H:i1=\E[?47l\E>\E[?1l:ic=\E[@:\
>         :im=\E[4h:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
>         :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
>         :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
>         :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:ke=:kh=\E[7~:\
>         :kl=\E[D:kr=\E[C:ks=:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:\
>         :me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\
>         :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
>         :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:\
>         :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
Message-ID: <m3hehq5spm.fsf@newsguy.com>
Organization: Still searching...
Date: Mon, 19 Aug 2002 16:33:57 -0700
From: Harry Putnam <reader@newsguy.com>
Subject: Xterm, what Xresources set these attributes?

Setup Linux Redhat 7.3
XFree86-4.2.0-8

When I type ncftp at an xterm prompt 
NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason (ncftp@ncftp.com).
ncftp>

  NcFTP 3.1.3
and 
  ncftp>
Appear in bold white, the rest in my default (khaki) color font.

man ls
LS(1)                          FSF                          LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

NAME and SYNOPSIS (and many other entries) are bold white

OPTION and FILE are yellow.  
DESCRIPTION
       List information about the FILEs (the current directory by
       default).  Sort entries alphabetically if none of -cftuSUX
       nor --sort.

DESCRIPTION  is bold white, the buld of the text is default khaki
 -cftuSUX
and
 nor --sort

Are bold white.

If I rename .Xdefaults and call an xterm like

xterm -bg black -fg khaki -fn 10x20

Then `man ls'
Everthing that was bold white is bold blue.

However I can't determine what in my .Xdefaults is controlling this.

grep -i white .Xdefaults
   emacs*pointerColor: white
   Netscape*selectForeground: White
   XTerm*background:       white
   nxterm*background:      white
   ! This was white, which is invisible on a white background
   ! Underlining shouldn't be yellow for white bg xterms
   *VT100*colorBD:         white
   nxterm*foreground:      white
   *VT100*colorBD:         white

Can I get some clues to figure out what controls this?

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <m3hehq5spm.fsf@newsguy.com>
Message-ID: <ajt0vn$772$1@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 20 Aug 2002 09:09:11 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Xterm, what Xresources set these attributes?

Harry Putnam <reader@newsguy.com> wrote:

> However I can't determine what in my .Xdefaults is controlling this.
> ...
>    ! This was white, which is invisible on a white background
>    ! Underlining shouldn't be yellow for white bg xterms
>    *VT100*colorBD:         white
     ^^^^^ (here is your bold-white)


"man xterm" documents the resources (I don't see any ready clues to the "blue")

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <m3hehq5spm.fsf@newsguy.com> <ajt0vn$772$1@news1.Radix.Net>
Message-ID: <m37kil4lcp.fsf@newsguy.com>
Organization: Still searching...
Date: Tue, 20 Aug 2002 08:10:30 -0700
From: Harry Putnam <reader@newsguy.com>
Subject: Re: Xterm, what Xresources set these attributes?

Thomas Dickey <dickey@saltmine.radix.net> writes:
>
>"man xterm" documents the resources (I don't see any ready clues to the "blue")


It may be documented but I see no indication how to connect this:

       colorBD (class ColorBD)
               This  specifies  the  color to use to display bold
               characters  if  the  ``colorBDMode''  resource  is
               enabled.

to the actual entry: *VT100colorBD:

Further, according to what I see in man xterm, this must be set first:

       colorBDMode (class ColorMode)
               Specifies  whether  characters   with   the   bold
               attribute  should be displayed in color or as bold
               characters.  Note that setting  ``colorMode''  off
               disables all colors, including bold.

It isn't here.  At least not in .Xdefaults

Nor is the command line switch:  +bdc
ps wwaux output shows no such flag

Yet the *VT100colorBD:  white still works.
I didn't see a mention of this being default.


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <m3hehq5spm.fsf@newsguy.com> <ajt0vn$772$1@news1.Radix.Net>
    <m37kil4lcp.fsf@newsguy.com>
Message-ID: <aju42m$r48$2@news1.Radix.Net>
Date: 20 Aug 2002 19:08:06 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Xterm, what Xresources set these attributes?

Harry Putnam <reader@newsguy.com> wrote:
> It isn't here.  At least not in .Xdefaults

perhaps it's set in the system app-defaults.  Redhat does that.  Try
        appres XTerm
to see.  I suppose a good packager would also update the manpage to
reflect their local customizations.

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <m3hehq5spm.fsf@newsguy.com> <ajt0vn$772$1@news1.Radix.Net>
    <m37kil4lcp.fsf@newsguy.com> <aju42m$r48$2@news1.Radix.Net>
Message-ID: <m3fzx9z4cn.fsf@newsguy.com>
Organization: Still searching...
Date: Tue, 20 Aug 2002 13:02:00 -0700
From: Harry Putnam <reader@newsguy.com>
Subject: Re: Xterm, what Xresources set these attributes?

Thomas Dickey <dickey@saltmine.radix.net> writes:
>
> perhaps it's set in the system app-defaults.  Redhat does that.  Try
>       appres XTerm
> to see.  I suppose a good packager would also update the manpage to
> reflect their local customizations.

Thanks .. The "appres" command is easy to forget about for some reason.

Yup, it appear both the Mode and the color White are preset.
Entering a dummy account with no .Xdefaults or .Xresources:

[exp@reader exp]$ appres XTerm | grep BD
*VT100*colorBDMode:     on
*VT100*colorBD: white

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris, comp.editors, comp.windows.x
References: <3DE8172C.8000602@doe.carleton.ca>
Message-ID: <xTkH9.96343$Gc.2857282@twister.austin.rr.com>
Date: Wed, 04 Dec 2002 10:35:09 GMT
From: Logan Shaw <lshaw-usenet@austin.rr.com>
Subject: Re: RGB "dialing" facility?

In article <3DE8172C.8000602@doe.carleton.ca>,
Shing-Fat Fred Ma wrote:
>
> Is there an X-tool in solaris that allows
> me to dial up different RGB values and
> see what text looks like on a background
> of another RGB value?

Sure:

	# red on blue
	#
        xterm -fg rgb:ff/00/00 -bg rgb:00/00/ff -e more /etc/termcap

	# yellow on magenta, with a different font
	#
        xterm -fg rgb:ff/ff/00 -bg rgb:ff/00/ff -fn lucidasanstypewriter-24 \
            -e more /etc/termcap

 <insert comment about the charm of Unix and its
  "composing simple tools to do cool things" approach here>

By the way, "man X" will give you information "rgb:xx/xx/xx" and
other similar color specifications not involving proper names.

  - Logan
-- 
I'm currently looking for work as a Unix/Solaris
administrator, or Perl/C++/Java developer.  Resume
at http://home.austin.rr.com/logan/resume.html.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.bsd.freebsd.misc
Message-ID: <atn8ib$noq$2@news1.radix.net>
References: <am8r2q$lag$1@news-int.gatech.edu>
   <uoi3hmpq0tfu3f@corp.supernews.com> <atm7qk$acg$1@node21.cwnet.roc.gblx.net>
Date: 17 Dec 2002 13:24:27 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: xterm freeze

Dan Foster <dsf@globalcrossing.net> wrote:
> In article <uoi3hmpq0tfu3f@corp.supernews.com>,
> Lee Harr  <missive@hotmail.com> wrote:
>>In article <am8r2q$lag$1@news-int.gatech.edu>, Matthew L. Creech wrote:
>>>
>>> This is a wierd problem that I didn't notice until recently.  When
>>> doing something in an xterm that requires extensive computation
>>> (usually compiling something), it'll execute fine for several
>>> minutes or more.  Then it'll randomly just stop doing anything - no
>>> new output, and the program seems to freeze.  As soon as I re-focus
>>> xterm, though, it picks right back up and continues processing.
>>> It's not just delaying the output while the program executes,
>>> either.  Right now my system is finishing a 10-minute compile that
>>> took an hour and a half because I left for a while and it stopped
>>> until I got back and moved my mouse.
>>> 
>>> Seems maybe it's some sort of X-windows option like screen blanking
>>> or the like, but it's pretty annoying whatever it is.  Any ideas?
>>> 
>>> -STABLE (Aug. 15th)
>>> XFree86-4.2.0_1,1
>>
>>
>>Yea... my first thought was "screen saver?"


no

It's been a known issue for some time.  Coincidentally, someone sent
a fix for it last week, and is in patch #171.

The XFree86 xterm supports ANSI color and VT220 emulation

There's an FAQ at

    http://invisible-island.net/xterm/xterm.faq.html
     ftp://invisible-island.net/xterm

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/

 //////////////////////////////////////////////////////////////////////////////
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Newsgroups: comp.unix.solaris
References: <3B80AE78.DB0C8628@lucent.com>
    <9lqcc6$40s$1@charity.cs.utexas.edu>
Message-ID: <9ls3v3$68a$2@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 20 Aug 2001 22:45:55 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: mouse control in a terminal

Logan Shaw <logan@cs.utexas.edu> wrote:
> In article <3B80AE78.DB0C8628@lucent.com>, Yang Ke  <keyang@lucent.com>
wrote:
>>      I am not sure if such thing is possible to implement
>>under Solaris OS. I want to control the behavior of mouse when
>>it moves into a terminal, for example, i wanna enable/disable
>>copy/paste using mouse when mouse moves into a terminal. 
>>      I searched out curses library manual, but didn't found any
>>mouse related instructions. maybe i am entirely wrong, can anyone
>>one give a tip if it's possible or how to implement ? 

> The "pine" program does something like this.  If you are using "xterm"
> as your terminal, you can use the mouse to select and open mail
> messages, for example.  I think it only works with xterm, not with all
> terminal types.

pine's a bad example for Solaris (unless it's been radically rewritten,
it's basically a legacy BSD program - rather ugly to build).  Look at
mutt which uses the mouse interface in either ncurses or slang.  There's
some mouse code in Solaris curses, but I don't know if it works since the
documentation was discarded long ago for some reason.  You can see the
definitions in curses.h, though.

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
References: <3B80AE78.DB0C8628@lucent.com> <3B81301D.515543B0@kodak.com>
    <m3ae0u8q3q.fsf@cc253090-a.sumt1.nj.home.com>
Message-ID: <3B81AFBA.3D819CB1@lucent.com>
Organization: Lucent Technologies
Date: Tue, 21 Aug 2001 08:47:54 +0800
From: Yang Ke <keyang@Lucent.com>
Subject: Re: mouse control in a terminal

Dan Espen wrote:
> Last time I looked at the source code to xterm and rxvt it was apparent
> that copy/paste *is* a function of the client program.
> 
> Being able to toggle copy/paste would require changes to most terminal
> programs I'm familiar with.

well, if it's not function of application, is it possible for application
to tell its attached terminal to disable copy/paste temporarily ? 

for example, you can't use mouse to do copy/paste in 'sun-cmd' terminal.

my question is related to 'xterm'.


Chris

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
References: <3B80AE78.DB0C8628@lucent.com> <3B81301D.515543B0@kodak.com>
    <m3ae0u8q3q.fsf@cc253090-a.sumt1.nj.home.com> <3B81AFBA.3D819CB1@lucent.com>
Message-ID: <m31ym6897l.fsf@cc253090-a.sumt1.nj.home.com>
Organization: Telcordia
Date: Tue, 21 Aug 2001 01:59:42 GMT
From: Dan Espen <dane@mk.telcordia.com>
Subject: Re: mouse control in a terminal

Yang Ke <keyang@lucent.com> writes:

> Dan Espen wrote:
> > Last time I looked at the source code to xterm and rxvt it was apparent
> > that copy/paste *is* a function of the client program.
> > 
> > Being able to toggle copy/paste would require changes to most terminal
> > programs I'm familiar with.
> 
> well, if it's not function of application, is it possible for application
> to tell its attached terminal to disable copy/paste temporarily ? 

I don't understand the terms you are using.
Copy/Paste is implemented by the Xterm program.

I don't know what  you mean by the attached  terminal unless you  mean
keyboard or mouse sequences you can generate there.

Whats the "application"?

Maybe if we knew *why* you want to do this?
-- 
Dan Espen

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
References: <3B80AE78.DB0C8628@lucent.com>
    <9lqcc6$40s$1@charity.cs.utexas.edu> <3B80C517.BE7A1A1A@lucent.com>
Message-ID: <9lrhv1$5tg$1@charity.cs.utexas.edu>
Organization: CS Dept, University of Texas at Austin
Date: 20 Aug 2001 12:38:41 -0500
From: Logan Shaw <logan@cs.utexas.edu>
Subject: Re: mouse control in a terminal

In article <3B80C517.BE7A1A1A@lucent.com>, Yang Ke  <keyang@lucent.com> wrote:
>I hope to *NOT* allow user copy/paste using his/her mouse.

You will never achieve that in a curses-based program.  Even if
you find a way to tell xterm and all other terminals not to allow
it, I can still take the source code to xterm and write a version
that behaves identically except that it always allows copy/paste
even if the application running on the terminal tells it not to.

In reality, I'm pretty sure it doesn't work that way anyway.  I believe
the copy/paste is done in the X server itself, not the application.

  - Logan
-- 
"Our grandkids love that we get Roadrunner and digital cable."
(Advertisement for Time Warner cable TV and internet access, July 2001)

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.solaris
References: <3B80AE78.DB0C8628@lucent.com>
    <9lqcc6$40s$1@charity.cs.utexas.edu> <3B80C517.BE7A1A1A@lucent.com>
    <9lrhv1$5tg$1@charity.cs.utexas.edu>
Message-ID: <9ls3pp$68a$1@news1.Radix.Net>
Organization: RadixNet Internet Services
Date: 20 Aug 2001 22:43:05 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: mouse control in a terminal

Logan Shaw <logan@cs.utexas.edu> wrote:
> In article <3B80C517.BE7A1A1A@lucent.com>, Yang Ke <keyang@lucent.com> wrote:
>>
>>I hope to *NOT* allow user copy/paste using his/her mouse.
>
> You will never achieve that in a curses-based program.  Even if
> you find a way to tell xterm and all other terminals not to allow
> it, I can still take the source code to xterm and write a version
> that behaves identically except that it always allows copy/paste
> even if the application running on the terminal tells it not to.

Copy/paste are controlled in xterm by resource settings (it's hardcoded
in some other applications).

Not exactly - the client (xterm for instance) asks the X server to
store the selected text after accepting a mouse button event (see the
translations resource); the paste happens in response to a binding for
the mouse buttons also.

So the copy/paste do involve the X server, but the client is the one
directing the activity.

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Newsgroups: comp.unix.solaris
References: <2635254.1047491261@dbforums.com>
Message-ID: <v6vggojq71ul22@corp.supernews.com>
Organization: Timetravellers Anonymous
Date: Wed, 12 Mar 2003 23:26:16 -0000
From: Richard L. Hamilton <rlhamil@smart.net>
Subject: Re: How Cron job open Xterm window and display outputs to this xterm?

In article <2635254.1047491261@dbforums.com>,
	hvincent <member26421@dbforums.com> writes:
> 
> Please help.  I tried to set up a cron job to:
> 1.  Open xterm window
> 2.  Run my script from this xterm
> 3.  display any errors or output from the script to this xterm.
> 
> The reason I need this because the script that I launch from cron job
> required user input and it could NOT feed in with regular <<EOF option.


Well, something like:

#! /bin/ksh
MYPATH=/path/to/my/bin/directory:/path/to/my/script/directory
MYCMD="myscript args..."
export PATH="/usr/bin:/usr/X/bin:/usr/openwin/bin:${MYPATH}"
ConsoleXuser="$(who|awk '$2=="console" && $NF=="(:0)" {print $1}')"
if [ "${ConsoleXuser}" = "${LOGNAME}" ]; then
    xterm -display :0 -e ${MYCMD}
else
    print -u 2 -r - \
        "User $LOGNAME not console X user at this time; script not run"
fi


...(in another script, itself run from cron) might work.

But if [the operation] doesn't actually require human judgment, but
is merely a sticking point of the program being run that it expects
terminal input, [then you should] scrounge and use "expect"
(http://www.sunfreeware.com/ has it precompiled, I think)
which uses pseudo-ttys to communicate with a program and can script its
interaction with that program.

That is, unless the program itself is something that needs an X display
for input, "expect" should be quite able to get around its inability to
deal with <<EOF input.

-- 
mailto:rlhamil@mindwarp.smart.net  http://www.smart.net/~rlhamil

 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
 //////////////////////////////////////////////////////////////////////////////

Newsgroups: muc.lists.netbsd.current-users
Message-ID: <20010207175214.C523@bloatware>
References: <Pine.NEB.4.30.0102062141180.26597-100000@fiona.amberites.invalid> 
Date: 7 Feb 01 22:52:14 GMT
From: Thomas E. Dickey
Subject: Re: xterm v. xterm-old


On Thu, Feb 08, 2001 at 07:40:24AM +1100, Geoff Wing wrote:
> [Cc'd: to Thomas E. Dickey (xterm maintainer)]
> 
> gabriel rosenkoetter wrote about Re: xterm v. xterm-old:
> :On Wed, Feb 07, 2001 at 07:02:37AM +0000, Geoff Wing wrote:
> :> You have v133 xterm.  It has colour support.  Try:
> :> % printf '\e[m\e[1m\e[33m\e[44mHello\e[K\e[m\n'
> :That's a solid highlight line, with TERM set to xterm and to
> :xterm-old.
> :Is the fact that I have:
> :XTerm*Background: grey20
> :XTerm*Foreground: grey80
> :... in my .Xdefaults at all relevent?
> 
> Ah, yes, seems to be.  Now I get the reverse line with v149 and
> uncoloured line with v88b (from XFree86 3.3.3.1b).
> 
> Thomas, what's the status here?  Setting the Foreground via resource
> causes problems with SGR colour setting though it works OK just using -fg.

The class overrides because most of the colors use the Foreground class.

I know about that, but it was part of the design that I inherited back in
1996 - puzzling but not annoying enough to alter.

> Is this expected/deliberate behaviour?  And reproducible for you?
> I haven't tried v150 but didn't see anything in the log to indicate it
> being altered/fixed.
> 
> Regards,
> -- 
> Geoff Wing : <gcw@pobox.com>
> Rxvt Stuff : <gcw@rxvt.org>
> Zsh Stuff  : <gcw@zsh.org>
 
-- 
Thomas E. Dickey <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: muc.lists.netbsd.current-users
Sender: current-users-owner@netbsd.org
Date: 2001-02-07 15:58:08 PST
From: Geoff Wing (gcw@rxvt.org)
Subject: Re: xterm v. xterm-old

Thomas Dickey wrote about Re: xterm v. xterm-old:
:
:> gabriel rosenkoetter wrote about Re: xterm v. xterm-old:
:> :XTerm*Background: grey20
:> :XTerm*Foreground: grey80
?
:The class overrides because most of the colors use the Foreground class.
:I know about that, but it was part of the design that I inherited back in
:1996 - puzzling but not annoying enough to alter.

OK, then if someone has XTerm*Foreground then they also need to
include the other colours under the XTerm class, not the VT100 (sub?)class.

Well, it worked for me (in 88b, v132 & v150) to also add the following
if XTerm*Foreground is set.
!------------------------------------------------------------
XTerm*color0: black
XTerm*color1: red3
XTerm*color2: green3
XTerm*color3: yellow3
XTerm*color4: blue3
XTerm*color5: magenta3
XTerm*color6: cyan3
XTerm*color7: gray90
XTerm*color8: gray30
XTerm*color9: red
XTerm*color10: green
XTerm*color11: yellow
XTerm*color12: blue
XTerm*color13: magenta
XTerm*color14: cyan
XTerm*color15: white
XTerm*colorUL: yellow
XTerm*colorBD: white
!------------------------------------------------------------

Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: muc.lists.netbsd.current-users
Message-ID: <200102072333.SAA02378@nnwest.rse.com>
Approved: mail2news@unix.wirtschaft.bos-muenchen.de
Date: 7 Feb 01 23:33:18 GMT
From: mlr@rse.com (M L Riechers)
Subject: Re: xterm v. xterm-old


Mmmm, yes.  xterm window seems to be using the foreground declared in
the x terminal resources for the background reverse video.

For instance,

Wed Feb  7 11:14:13 on mterm.rse.com ~ A) xrdb -query |grep -i term
XTerm*Foreground:       greenyellow
XTerm*Background:       dimgrey

but, I start another xterm window thusly:

Wed Feb 7 16:47:31 on mterm.rse.com ~ A) exec xterm -bg "black" -fg \
"green" -fn "-*-courier-medium-r-*-*-24-*-*-*-*-*-*-*" -geometry \
96x24+10+600 -ls -title "A Big Black Screen -- Telnet to mac" &

and:

Wed Feb 7 17:16:53 on t982.rse.com /tmp A) exec xterm -dc -bg "black" \
-fg "green" -fn "-*-courier-medium-r-*-*-24-*-*-*-*-*-*-*" -geometry \
105x49+10+600 -ls -title "A Big Black Screen -- already on a Big, Big \
mac" &

and then:

Wed Feb  7 17:08:48 on t982.rse.com /tmp A) lynx -nocolor -book

The background is black, the unhighlighted text is green, and the
highlighted text is a brighter, bolder green.

The (highlighted) selected text is on a _greenyellow_ (_not_ green)
background, while the text appears to still be green (_not_ black).

If I use my mouse to select (cut) unhighlighted text, then the text
becomes green on greenyellow, same as above. _But_, if I use my mouse to
select (cut) _highlighted_ text, then then the text again becomes
green on greenyellow, but the green foreground text is much bolder..

Now, if from one of these green-on-black xterm windows I:

Wed Feb 7 17:07:40 on t982.rse.com /tmp A) exec xterm -dc -fn \
"-*-courier-medium-r-*-*-24-*-*-*-*-*-*-*" -geometry 105x49+10+600 \
-ls -title "A Big Black Screen -- already on a Big, Big mac" &

the new window defaults to greenyellow-on-dimgrey, and if I:

Wed Feb  7 17:08:48 on t982.rse.com /tmp A) lynx -nocolor -book

then I get a lynx where the reverse videos are readable: i.e. the
greenyellow text on dimgrey background reverses to dimgrey (I think,
it's a little hard to see) text on greenyellow background.

However, if I do:

Wed Feb  7 17:08:03 on t982.rse.com /tmp A) lynx -book

I continue to see only one solid sheet of greenyellow.

Now, if I go back to the command prompt in the (still talking about
the greenyellow-on-dimgrey xterm) xterm window, and use my mouse to
select (cut), I get the expected dimgrey (I think, it's a little hard
to see) text on greenyellow background.

Turning back to the green-on-black xterm window, if I use my mouse to
select (cut), I get the green (I think, it's a little hard
to see) text on greenyellow background -- it's almost impossible to
read: the text is only a little different shade than the background.
It's my belief that the text ought to be black on a green background.

I repeated this test starting from nnwest (NetBSD version 1.4.2),
generating a green-text-on-black xterm window from a
greenyellow-text-on-dimgrey xterm, telneting to t982, (no exec on
t982, still telnet'ed from nnwest) lynxing, etc, etc.  All
highlighting, video reversing happened I presume correctly: i.e. the
green text on a black background reversed to black text on green.

The key difference is that the xterm that worked was 1.4.2, while the
ones that didn't were 1.5.

As to why (NetBSD 1.5.1_ALPHA xterm)

Wed Feb  7 17:08:03 on t982.rse.com /tmp A) lynx -book

gives me a sheet of greenyellow, now that's a puzzle. S'pose to be
bold yellow on blue, you say, Geoff. Well, both the
green-text-on-black xterm window and the greenyellow-text-on-dimgrey
xterm window produce the identically same colour, which certainly
seems to be greenyellow, but I can't find any text in there at all.

-Mike

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: muc.lists.netbsd.current-users
Message-ID: <20010207202436.A27966@bloatware>
References: <200102080101.UAA02572@nnwest.rse.com>
Sender: current-users-owner@netbsd.org
Approved: mail2news@unix.wirtschaft.bos-muenchen.de
Date: 8 Feb 01 01:24:36 GMT
From: dickey@herndon4.his.com (Thomas Dickey)
Subject: Re: xterm v. xterm-old


On Wed, Feb 07, 2001 at 08:01:19PM -0500, M L Riechers wrote:
> Well, I found xrdb, read the man page, and did
> 
>  xrdb -remove -
> 
> and promptly blew away _all_ my x terminal resources. (Darn!)

what about the .Xdefaults?
 
> Now, aside from the fact that I have no x terminal resources anymore,
> all is well.
> 
> However, I think the xterm program might be due a couple of touch-ups?

no - I think most of the problems were from using the "Foreground"
and "Background" rather than "foreground" and "background".  (It's
not been an faq - this is perhaps the 4th time someone's reported the
problem in the past 3-4 years).

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: muc.lists.netbsd.current-users
Approved: mail2news@unix.wirtschaft.bos-muenchen.de
References: <20010208175036.A11808@bloatware> 
Message-ID: <20010208193615.A26642@bloatware>
Date: 9 Feb 01 00:36:15 GMT
From: dickey@herndon4.his.com (Thomas Dickey)
Subject: Re: xterm v. xterm-old

On Thu, Feb 08, 2001 at 04:20:42PM -0800, Greywolf wrote:
> On Thu, 8 Feb 2001, Thomas Dickey wrote:
> 
> # On Thu, Feb 08, 2001 at 05:27:12PM -0500, M L Riechers wrote:
> # > > what about the .Xdefaults?
> # > 
> # > The .Xdefaults files are still there, but, I believe I'm correct in
> # > stating that the only time the .Xdefaults come into play is when the X
> # > server, or xdm, or xinit starts, it dumps the contents of .Xdefaults
> # > to the X server. This, I believe, happens about one time per
> # > initiation of the X window system.
> # 
> # no - unless you did something like an "xrdb -merge", the .Xdefaults
> # file is loaded dynamically for each application as it is started.
> # Equivalently, you can set $XAPPLRESDIR to point to your own app-defaults
> # directory (so you can maintain resource files individually).
> 
> I don't know what system you find that does this but it is incorrect:  

perhaps you don't agree with my wording - but the point is correct.

> .Xdefaults/.Xresources (the latter is preferred) is loaded once per session
> and ONLY IFF THE DEFAULT SESSION, however it is started on your system,
> happens to call xrdb -merge $HOME/.Xresources.

I tested it before I emailed, just to be certain that .Xdefaults is
loaded dynamically (I changed the font to 12x24, which is easy to test).
This is all I've got in my $HOME/.Xdefaults -

Seyon*modems: /dev/modem

*customization: -color

xterm*Font: 6x13
xterm*font: 6x13

I don't have a ~/.Xresources, either.  (I've been using this feature, btw
for more than ten years, so obviously you're misinterpreting my wording).
 
-- 
Thomas E. Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com

 //////////////////////////////////////////////////////////////////////////////

The xterm program uses screen-display colors according to the color
mappings available from the underlying X Windows system; there can be
odd quirks and sometimes you don't get the colors you want.

From the XEmacs FAQ:   3.2.4: How can I limit color map usage?  

I'm using Netscape (or another color grabber like XEmacs); is there any
way to limit the number of available colors in the color map?

Answer: No, but you can start Netscape before XEmacs, and it will use
the closest available color if the colormap is full. You can also limit
the number of colors Netscape uses, invoking Netscape with one of the flags

    -mono

    -ncols <#> 
or
    -install

(for mono, limiting to <#> colors, or for using a private color map).

If you have the money, another solution would be to use a truecolor or
direct color video.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: muc.lists.netbsd.current-users
Message-ID: <200102082358.SAA10657@nnwest.rse.com>
From: mlr@rse.com (M L Riechers)
Subject: Re: xterm v. xterm-old
Date: 8 Feb 2001 23:58:24 GMT

On Thu, 8 Feb 2001 17:50:36 -0500 sayeth Thomas Dickey:

> On Thu, Feb 08, 2001 at 05:27:12PM -0500, M L Riechers wrote:
> > > what about the .Xdefaults?
> > 
> > The .Xdefaults files are still there, but, I believe I'm correct in
> > stating that the only time the .Xdefaults come into play is when the X
> > server, or xdm, or xinit starts, it dumps the contents of .Xdefaults
> > to the X server. This, I believe, happens about one time per
> > initiation of the X window system.
> 
> no - unless you did something like an "xrdb -merge", the .Xdefaults
> file is loaded dynamically for each application as it is started.
> Equivalently, you can set $XAPPLRESDIR to point to your own app-defaults
> directory (so you can maintain resource files individually).

Ach, of course. You're right.  You meant the app default file -- the
one in /usr/X11R6/lib/X11/app-defaults/XTerm, on each respective
system, if and when, as you point out, we haven't "set $XAPPLRESDIR to
point to your own app-defaults directory."  We haven't done that, and
we haven't modified any of the XTerm app-defaults files. Everything's
stock. But it slipped my mind.

Except that I have in my .Xdefaults (whoops, no, point of confusion:
it's .Xresources; sorry) file, in each of my home directories:

XTerm*Foreground:       greenyellow
XTerm*Background:       dimgrey

But an application's X resources come from so many places (or go to,
it's been so long (sigh)).

And, I say again, one of those places is from the X server process --
and that's where our <XTerm*Foreground:       greenyellow> was coming
from.

Go to mterm, do this and get that:

Wed Feb  7 11:14:13 on mterm.rse.com ~ A) xrdb -query |grep -i term
XTerm*Foreground:       greenyellow
XTerm*Background:       dimgrey
*XTerm*font:    -*-courier-medium-r-*-*-22-*-*-*-*-*-*-*
*XTerm*font5:   -*-*-medium-r-*-*-16-*-*-*-*-*-*-*
*XTerm*font6:   -*-*-medium-r-*-*-24-*-*-*-*-*-*-*
*XTerm.geometry:        96x32+10+10

Go to t982, nnwest, do identical, get identical.

Go to t982, do 

 xrdb -remove -

and blow away your X terminal resources (even though I didn't expect
it to work that way -- I believed the documentation).

stay on  t982, do xrdb -query, get nada.
go to  nnwest, do xrdb -query, get the same, exactly nothing.
go to   mterm, do xrdb -query, get the same, blank stares.

go to   t982, lynx and stuff now   works.  No surprise, we did the
xrdb -remove -  there.

go to nnwest, lynx and stuff still works.  No surprise, this is the
1.4.2 machine, and it always worked.

go to  mterm, lynx and stuff now   works.  Surprise, we didn't do
anything on this machine -- but lynx and stuff didn't work just a
little ago.

It occurred to me later that perhaps you meant that I could restore my
X terminal resources from an .Xresources file.  I could -- but that
would have been the initial state of the X terminal resources on X
start, without any of the intervening changes.

(Actually, I was just to darn lazy, and the preceding's just a lame
excuse.)

-Mike

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
Message-ID: <b5uikf$m8d$07$1@news.t-online.com>
Organization: T-Online
Date: Thu, 27 Mar 2003 11:06:40 +0100
From: Matthias Pieroth <matthias.pieroth@t-online.de>
Subject: seeking terminal

Hi NG,

I'm using Suse 8.0 and ncurses. I need a terminal with the following
abibilites:

- A_BLINK of ncurses should work
- has 16 colors
- if not 16 colors than at least the possibility to can_change_color.

Thanx in advance

Matthias

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <b5uikf$m8d$07$1@news.t-online.com>
Message-ID: <b5utv1$mg4$1@news1.radix.net>
Organization: RadixNet Internet Services
Date: 27 Mar 2003 13:22:41 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: seeking terminal

Matthias Pieroth <matthias.pieroth@t-online.de> wrote:
> Hi NG,

> I'm using Suse 8.0 and ncurses. I need a terminal with the following
> abibilites:

> - A_BLINK of ncurses should work

xterm doesn't "do" blinking characters, but does let you set it to a given
color.

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <b5uikf$m8d$07$1@news.t-online.com>
    <b5utv1$mg4$1@news1.radix.net> <b5v0a3$6bl$01$1@news.t-online.com>
Message-ID: <b5v06c$olg$05$1@news.t-online.com>
Date: Thu, 27 Mar 2003 14:58:06 +0100
From: Matthias Pieroth <matthias.pieroth@t-online.de>
Subject: Re: seeking terminal

Thomas Dickey wrote:
>
> xterm doesn't "do" blinking characters, but does let you set it to a
> given color.

Yes I know. But we need to see the BLINK, not a color. So I need a terminal
that *does* the blinking.

BTW: Do you know how to do blinking on a virtual console. I heard I should
disable framebuffer, but I don't know how. Can I set a kernel option? If
yes, which one and where do I set it?

Matthias

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <b5uikf$m8d$07$1@news.t-online.com>
Message-ID: <slrnb861gb.3p.stephane_chazelas@pcchazelas.free.fr>
Organization: Guest of ProXad - France
Date: 27 Mar 2003 14:19:08 GMT
From: Stephane CHAZELAS <stephane_chazelas@yahoo.fr>
Subject: Re: seeking terminal

Matthias Pieroth wrote:
> I'm using Suse 8.0 and ncurses. I need a terminal with the following
> abibilites:
> 
> - A_BLINK of ncurses should work
> - has 16 colors
> - if not 16 colors than at least the possibility to can_change_color.

emu (ftp://www.x.org/contrib/applications/emu-1.31.tar.gz)
has blinking text and 16 colors.

For what I could test, it doesn't work great however.

-- 
Stphane

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.terminals
References: <b5uikf$m8d$07$1@news.t-online.com>
    <slrnb861gb.3p.stephane_chazelas@pcchazelas.free.fr>
Message-ID: <b61grl$e56$1@news1.radix.net>
Organization: RadixNet Internet Services
Date: 28 Mar 2003 12:57:25 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: seeking terminal

Stephane CHAZELAS <stephane_chazelas@yahoo.fr> wrote:
>
> For what I could test, it doesn't work great however.

yes - I think I've seen it working properly once or twice.  The last few
times I looked at it, it didn't work well enough to start vttest (some
issue with not sending the carriage return in raw mode).

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com/
 ftp://dickey.his.com/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <b5uikf$m8d$07$1@news.t-online.com>
    <slrnb861gb.3p.stephane_chazelas@pcchazelas.free.fr>
    <b5v1qs$q6t$05$1@news.t-online.com>
Message-ID: <slrnb8645j.3p.stephane_chazelas@pcchazelas.free.fr>
Organization: Guest of ProXad - France
Date: 27 Mar 2003 14:56:22 GMT
From: Stephane CHAZELAS <stephane_chazelas@yahoo.fr>
Subject: Re: seeking terminal

Matthias Pieroth wrote:
> 
> What do you mean with "it doesn't work great"? Is it useable for what I need?

Maybe, maybe not. It's able to display text in 15 different
colors and blinking. If it's all you need, that it will do.

vim or mutt don't display great in "emu -term emu"

Just try. To compile under Linux:

gzip -dc emu-1.31.tar.gz | tar xf -
cd emu
echo '#define _USE_STDARGS 1' | cat - include/os.h_tmp > include/os.h
xmkmf -a
make
sudo make install 

-- 
Stphane

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <b5uikf$m8d$07$1@news.t-online.com>
    <slrnb861gb.3p.stephane_chazelas@pcchazelas.free.fr>
    <b61grl$e56$1@news1.radix.net>
Message-ID: <slrnb88mad.3m.stephane_chazelas@pcchazelas.free.fr>
Organization: Guest of ProXad - France
Date: 28 Mar 2003 14:18:21 GMT
From: Stephane CHAZELAS <stephane_chazelas@yahoo.fr>
Subject: Re: seeking terminal

Thomas Dickey wrote:
[...]
>> emu (ftp://www.x.org/contrib/applications/emu-1.31.tar.gz)
>>
>> For what I could test, it doesn't work great however.
> 
> yes - I think I've seen it working properly once or twice.  The last few
> times I looked at it, it didn't work well enough to start vttest (some
> issue with not sending the carriage return in raw mode).

Note that by default, it comes with three terminal emulations:

emu -term emu
emu -term vt220
emu -term xterm

I think only "emu" term has "blink" and it's not vt100-compatible.

-- 
Stphane


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.protocols.kermit.misc
Message-ID: <8TDpa.21775$7M5.1588527@twister.nyc.rr.com>
Date: Wed, 23 Apr 2003 21:48:52 GMT
From: "Jeffrey Altman [Road Runner NYC]" <jaltman2@nyc.rr.com>
Subject: Bitstream Vera Fonts work with Kermit 95

Bitstream and the Gnome Project have worked to release a set of Open 
Source fonts.  The notion was to provide a free set of fonts which could
be used on Open Source operating systems unlike the "free" fonts which
Microsoft recently pulled from their web site.

These are standard True  Type Fonts (.TTF) which can be installed on
Microsoft Windows as well as  X Windows.

The Bitstream Vera Sans Mono font is not as well populated as other 
Unicode True Type Fonts, however, it is extremely readable.  One of the 
nice things about the license is that the font may be modified and 
redistributed without royalties.  Perhaps someone will add the terminal 
graphics.

You can read the license and download the fonts from

   http://www.gnome.org/fonts/

You will need 'gunzip' and 'tar' in order to expand the distribution.
Perhaps Frank will be willing to place the expanded files on the Kermit 
ftp site.

- Jeffrey Altman

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.protocols.kermit.misc
Message-ID: <3ea7e04d@duster.adelaide.on.net>
References: <8TDpa.21775$7M5.1588527@twister.nyc.rr.com>
Date: Thu, 24 Apr 2003 22:32:08 +0930
From: Arthur Marsh <arthur.marsh@internode.on.net>
Subject: Re: Bitstream Vera Fonts work with Kermit 95

Thanks, I downloaded and unpacked the .bz2 version on Solaris, then used 
C-Kermit to send the .ttf files to my PC running K95, and Vera Sans Mono 
looks good (and just fits a 24 line by 80 column terminal window) at 13 
points on a monitor set to a 1024 * 768 display resolution.

Arthur.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.protocols.kermit.misc
Message-ID: <b890f0$4lb$1@watsol.cc.columbia.edu>
References: <8TDpa.21775$7M5.1588527@twister.nyc.rr.com>
Organization: Columbia University
Date: 24 Apr 2003 11:39:12 -0400
From: Frank da Cruz <fdc@columbia.edu>
Subject: Re: Bitstream Vera Fonts work with Kermit 95

In article <8TDpa.21775$7M5.1588527@twister.nyc.rr.com>,
Jeffrey Altman [Road Runner NYC] <jaltman2@nyc.rr.com> wrote:
: Bitstream and the Gnome Project have worked to release a set of Open 
: Source fonts...
:
:    http://www.gnome.org/fonts/
:
: The Bitstream Vera Sans Mono font is not as well populated as other 
: Unicode True Type Fonts...


A quick inspection of this font shows it's not much more than ASCII plus
Latin-1:  It has the Euro symbol, a couple Greek letters, a few letters
needed for Polish/Czech/Turkish, a few symbols from the Apple Quickdraw set
(per mille, "smart quotes", etc) and that's about it.  It doesn't even have
line/box-drawing characters (what Jeff meant by "terminal graphics").

Although it is an attractive and readable font and installs effortlessly on
Windows, it's not particularly useful for terminal emulation.  Compare
(e.g.) with Courier New or Lucida Console, both of which come with recent
Windows versions and handle most terminal emulation tasks including math,
technical, and forms, plus Greek and Cyrillic, and (Courier New only) Arabic
and Hebrew.

- Frank

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.linux.x, comp.terminals
Message-ID: <MPG.19207bedbe78c4b1989683@news.boeing.com>
Organization: The Boeing Company
Date: Mon, 5 May 2003 21:48:07 GMT
From: The Boeing Company <bernard.s.borensteinNOSPAM@boeing.com>
Subject: Need help with xterm programming

I'm porting a code from the SGI to linux (redhat 7.3).  
This is a very old code that used the xterm that launched an
OPENGL program to do input using fortran reads and writes.
The codes is sort of working, but when the fortran code writes into
the xterm, it does not get focus.  On the SGI, the xterm comes to the
front and is on-top of the graphics window.  On linux it remains 
underneath the graphics window.

Here is the code and I'm hoping someone can give me an idea of what it 
is doing.  On the SGI that it works on, the $TERM variable is set to 
iris-ansi.

void putCSI(FILE *f, const char *s) {fprintf(f,"^[[%s",s); }

void textpo_(int left, int right, int bottom, int top)
{
  char buffy[80];
  sprintf(buffy,"204;%d;%d/y",right-left+1, top-bottom+1);
  putCSI(stdout,buffy);
  sprintf(buffy,"205;%d;%d/y",left,bottom);
  putCSI(stdout,buffy);
  fflush(stdout);
}

void tpon_() { putCSI(stdout,"4/y"); fflush(stdout); }

In the fortran code, the user would do this type of call sequence :

call textpo(180,760,300,450)
call tpon()
write(*,*) 'please enter psi,theta, and phi (in degrees)'
read(*,*) psi,theta,phi


Any help anyone can provide with this would be greatly appreciated. I've 
been looking at the limited amount of xterm programming info available 
on the net and haven't found much.  Also whatever the "/y" is supposed 
to be doing is not working, since I found a whole bunch of "y"s written
to the xterm and not interpreted as escape sequences.

TIA,

Bernie B.
The Boeing Co.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.linux.x, comp.terminals
Message-ID: <b98j66$dat$1@pegasus.csx.cam.ac.uk>
References: <MPG.19207bedbe78c4b1989683@news.boeing.com>
Organization: University of Cambridge, England
Date: 6 May 2003 15:08:54 GMT
From: Ben Harris <bjh21@cus.cam.ac.uk>
Subject: Re: Need help with xterm programming

In article <MPG.19207bedbe78c4b1989683@news.boeing.com>,
The Boeing Company  <bernard.s.borensteinNOSPAM@boeing.com> wrote:
>
> I'm porting a code from the SGI to linux (redhat 7.3)....


I suspect on the SGI you're *not* using "xterm" at all, but "xwsh",
which is the terminal emulator that IRIX usually uses.  It has its
own set of private Escape sequences which end with /y.


> Here is the code and I'm hoping someone can give me an idea of what it 
> is doing.  On the SGI that it works on, the $TERM variable is set to 
> iris-ansi.


Look at "ctlseqs.ms", which is part of the xterm sources.  Feeding 
"ctlseqs" to Google gets useful results.  The relevant section begins 
"window manipulation".

> Also whatever the "/y" is supposed 
> to be doing is not working, since I found a whole bunch of "y"s written
> to the xterm and not interpreted as escape sequences.

Hmm.  That sounds like a bug in xterm, since it should be capable of 
detecting the end of the control sequence, even if it doesn't know what to 
do about it.

-- 
Ben Harris
Unix Support, University of Cambridge Computing Service.
  If I wanted to speak for the University, I'd be in ucam.comp-serv.announce.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.os.linux.x, comp.terminals
References: <MPG.19207bedbe78c4b1989683@news.boeing.com>
    <b98j66$dat$1@pegasus.csx.cam.ac.uk> <b998hq$cea$1@news1.radix.net>
Message-ID: <b9aok0$bda$1@pegasus.csx.cam.ac.uk>
Organization: University of Cambridge, England
Date: 7 May 2003 10:53:52 GMT
From: Ben Harris <bjh21@cus.cam.ac.uk>
Subject: Re: Need help with xterm programming

In article <b998hq$cea$1@news1.radix.net>,
Thomas Dickey  <dickey@saltmine.radix.net> wrote:
>
>In comp.os.linux.x Ben Harris <bjh21@cus.cam.ac.uk> wrote:
>>
>> In article <MPG.19207bedbe78c4b1989683@news.boeing.com>,
>>  The Boeing Company  <bernard.s.borensteinNOSPAM@boeing.com> wrote:
>>>
>>> I'm porting a code from the SGI to linux (redhat 7.3).  
>
>....
>>>  Also whatever the "/y" is supposed 
>>> to be doing is not working, since I found a whole bunch of "y"s written
>>> to the xterm and not interpreted as escape sequences.
>
>> Hmm.  That sounds like a bug in xterm, since it should be capable of 
>> detecting the end of the control sequence, even if it doesn't know what
>> to do about it.
>
>
>
>  more likely he's running "gnome-terminal"
> (which is widely known to have various bugs such as this).

Yeah.  I thought it was kind of unlikely that xterm would be that
broken,  but it didn't occur to me that if "xterm" could be "xwsh" it
could also be "gnome-terminal".  I'm sorry to have cast the integrity
of your fine program into question.

-- 
Ben Harris
Unix Support, University of Cambridge Computing Service.
  If I wanted to speak for the University, I'd be in ucam.comp-serv.announce.

 //////////////////////////////////////////////////////////////////////////////

Hints from http://www.phildev.net/solaris/misc.html

HOW TO GET XTERMS AND DTTERMS TO READ YOUR ENVIRONMENT (Solaris)
For DTTerms, edit /usr/dt/app-defaults/C/Dtterm and add:

*loginShell: true

For XTerms, edit /usr/openwin/lib/app-defaults/XTerm and add:

XTerm*loginShell: true

HOW TO GET DTTERMS TO HAVE A BLACK BACKGROUND (Solaris)
For DTTerms, edit /usr/dt/app-defaults/C/Dtterm and add:

Dtterm*term.background: black

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.questions
Message-ID: <vjohdkqur39ke9@corp.supernews.com>
Organization: Posted via Supernews, http://www.supernews.com
Date: Fri, 15 Aug 2003 02:30:12 -0000
From: Len Philpot <len@philpot.org>
Subject: Scroll xterm by page instead of half page?

I'm trying to setup xterm to scroll by pages instead of halfpages when I
hit PageUp and PageDown. Ideally, it would be page_lines - 1, but I can
certainly live with a whole page. I have a strong feeling it has to do
with scroll-back() and scroll-forw(), using a count of 1 and unit of
page instead of the VT-100 default halfpage. However, I've not been able
to work out the exact resource syntax to make it happen. I _was_ able to
totally disable the keyboard once, but that's not what I had in mind,
either <g>.

From the xterm manpage :
        Shift <KeyPress> Prior:scroll-back(1,halfpage) \n\
        Shift <KeyPress> Next:scroll-forw(1,halfpage)

I'm assuming Prior and Next map to PageUp/Down on my keyboard (Linux PC).

My xterms are sized via geometry resources in .Xdefaults, so they pretty
much stay the same size. This means I could kludge.. ahem, I mean
achieve the one line overlap I'd like with a count of lines - 1 and unit
of line (reading further, an obviously better approach would be to use
$LINES - 1). However, I need to work out the syntax to make it happen
first. Can anyone give me an example of how it should go? I tried
following the example in the xterm man page, but I'm apparently missing
something.

Thanks!

-- 

-- Len Philpot                          ><>  --
-- len@philpot.org       http://philpot.org/ --
-- lphilpot01@yahoo.com  (alternate email)   --

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.questions
Message-ID: <bhienv$65k$1@news1.radix.net>
References: <vjohdkqur39ke9@corp.supernews.com>
Date: 15 Aug 2003 11:04:31 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Scroll xterm by page instead of half page?

Len Philpot <len@philpot.org> wrote:
> I'm trying to setup xterm to scroll by pages instead of halfpages when I
> hit PageUp and PageDown. 


"page" is the keyword:

     scroll-back(count [,units])
             This action scrolls the text window backward so that
             text that had previously scrolled off the top of the
             screen is now visible.  The count argument indicates
             the  number  of  units (which may be page, halfpage,
             pixel, or line) by which to scroll.

(but for an overlap - no luck.  Someone sent a related patch which is my
backlog, but it requires some work that I've not gotten around to yet).

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com
 ftp://dickey.his.com


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.questions
Message-ID: <vjqodnkv62fc7@corp.supernews.com>
References: <vjohdkqur39ke9@corp.supernews.com>
    <bhienv$65k$1@news1.radix.net>
Date: Fri, 15 Aug 2003 22:41:59 -0000
From: Len Philpot <len@philpot.org>
Subject: Re: Scroll xterm by page instead of half page?

Thomas Dickey <dickey@saltmine.radix.net> wrote:
> "page" is the keyword:

Can you give me a pointer on the syntax, or maybe some further
resources? There's an example in the man page, but it appears as if it
involves another layer rather than just a straight assignment :

   *VT100.Translations: #override <Key>F13: keymap(dbx)
   *VT100.dbxKeymap.translations: \
          <Key>F14: keymap(None) \n\
          <Key>F17: string("next") string(0x0d) \n\
          <Key>F18: string("step") string(0x0d) \n\
          <Key>F19: string("continue") string(0x0d) \n\
          <Key>F20: string("print ") insert-selection(PRIMARY, CUT_BUFFER0)

The dbxKeymap translation table is defined in the first line and
assigned to F13. It is then applied (?) to the subsequent keys in the
following lines. Does it have to be assigned to a key first? All I want
to do is simply assign scroll-back and scroll-forw with a unit of page
to PageUp and PageDown.

Clearly, I'm a little confused on how the syntax works! :-)

Thanks.

-- 
-- Len Philpot                          ><>  --
-- len@philpot.org       http://philpot.org/ --
-- lphilpot01@yahoo.com  (alternate email)   --


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
References: <E601e.789369$6l.136697@pd7tw2no>
    <pan.2005.03.25.22.30.34.833512@yahoo.com>
    <0O31e.790626$6l.465752@pd7tw2no>
    <pan.2005.03.26.02.39.17.497119@yahoo.com>
    <2E51e.788103$Xk.193246@pd7tw3no>
Message-ID: <114an5d37t0as4b@corp.supernews.com>
Date: Sat, 26 Mar 2005 12:59:25 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: copy paste keys in xterm/rxvt

shea martin <smartin@arcis.com> wrote:
>
> Dave Uhring wrote:
>> On Sat, 26 Mar 2005 02:29:16 +0000, shea martin wrote:
>>
>>
>>>In rxvt it doesn't work at all.  The copy key prints a 9~, and past prints a 2~.
>>
>>
>> I don't know why you are using the copy key.  Highlight the text using the
>> left mouse button and paste it with the middle button:

> The copy key puts the text in a different clipbuffer than the autocopy buffer.

Perhaps you're referring to /usr/openwin/lib/app-defaults/XTerm,
which says (among other things)


*VT100.Translations:    #override \
        ...
        <Key>F16: start-extend() select-end(PRIMARY, CUT_BUFFER0, CLIPBOARD) \n\
        <Key>F18: insert-selection(PRIMARY, CLIPBOARD) \n\

You can modify that behavior by changing your X resource definitions.
The system resource file itself adds to the built-in translations
which are listed in xterm's manpage.

> Usually I do just highlight, middle-click.  But it can be handy to have the
> ability to paste from two different buffers, depending on whether you
> middle-click or use the 'paste' key.  The key-combo is also nice because it is
> not easily lost.  I usually use it to copy text that I know I won't be needing
> for a bit.  Then use hl/middle-click in between.

> ~S

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.questions
Message-ID: <vk5ke8925nbj4d@corp.supernews.com>
References: <vjohdkqur39ke9@corp.supernews.com>
    <bhienv$65k$1@news1.radix.net> <vjqodnkv62fc7@corp.supernews.com>
    <bhu70b$ev6$3@news1.radix.net>
Date: Wed, 20 Aug 2003 01:41:28 -0000
From: Len Philpot <len@philpot.org>
Subject: Re: Scroll xterm by page instead of half page?

Thomas Dickey <dickey@saltmine.radix.net> wrote:
>
> Offhand, I'd look in the X documentation (there are some references online,
> but usually I look first in the documentation in the source tree that I
> have on my machine, or in the O'Reilly books--neither is convenient for a
> URL).

I'll have to take a look - Thanks.

> Aside from the keymap part - the syntax is as you see.  Literal newlines
> have to be encoded into the string to separate assignments.  The names
> before the ":" are documented somewhere in the Xt documentation.
> 
>> following lines. Does it have to be assigned to a key first? All I want
>> to do is simply assign scroll-back and scroll-forw with a unit of page
>> to PageUp and PageDown.

Well, the n - 1 movement is icing on the cake. :-) Right now, I'd be
happier with move by a full page either way. With each Shift PageUp
(likewise PageDown), the top line first becomes the middle, then the
bottom line, since it's moving by halfpages by default.

> Shift pageup/pagedown do that.  The special thing that your posting referred
> to was by sizes slightly less than a pagesize.  For reference, here's a
> similar binding (from Solaris) which doesn't use a shift:
> 
> *VT100.Translations:    #override \
>        @Num_Lock<Key>KP_0: string(0)\n\

        [ snip ]

>        <Key>Prior:scroll-back(1,page)\n\
>        <Key>Next:scroll-forw(1,page)\n\
> 
> The "page" in each case is just a keyword that xterm's handler looks at
> and decided what to do - there's no expression evaluation, just string
> matching.

I can't be sure offhand if I included the VT100 line - I'll have to give
it a shot.

Thanks again!

-- 
-- Len Philpot                          ><>  --
-- len@philpot.org       http://philpot.org/ --
-- lphilpot01@yahoo.com  (alternate email)   --


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.questions
Message-ID: <vk84bfpvpph14@corp.supernews.com>
References: <vjohdkqur39ke9@corp.supernews.com>
    <bhienv$65k$1@news1.radix.net> <vjqodnkv62fc7@corp.supernews.com>
    <bhu70b$ev6$3@news1.radix.net> <vk5ke8925nbj4d@corp.supernews.com>
Date: Thu, 21 Aug 2003 00:25:19 -0000
From: Len Philpot <len@philpot.org>
Subject: Re: Scroll xterm by page instead of half page?

Len Philpot <len@philpot.org> wrote:
>>
>> *VT100.Translations:    #override \
>>        <Key>Prior:scroll-back(1,page)\n\
>>        <Key>Next:scroll-forw(1,page)\n\

That works for me - I was being an idiot and using xterm.Translations:

... Made it VT100 and there is joy in Mudville once again  :-)

Thanks.

-- 
-- Len Philpot                          ><>  --
-- len@philpot.org       http://philpot.org/ --
-- lphilpot01@yahoo.com  (alternate email)   --


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.sys.hp.hpux, comp.unix.programmer
Message-ID: <bop939$4mi$1@news1.radix.net>
References: <67bf894f.0311101100.4e7c2d50@posting.google.com>
Date: 11 Nov 2003 00:04:57 GMT
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: xterm logging

In comp.sys.hp.hpux Raj Kotaru <raj_kotaru%hotmail.com> wrote:
>
> Hello All,
>
> I have an application that is running in, and writes to the stdout of
> an xterm window. I need to create a log of the output from the
> application.
> 
> I am aware that after the application has started, one can enable or
> disable logging via a mouse click by selecting or deselecting the "log
> to file" option in the pop down menu.
> 
> However, this requires one to have access to the xterm window itself.
> If I am dialing in via a modem into the machine where my application
> is already running in an xterm window, is there any way that I can
> send a message from the command line that essentially does the same
> thing as toggling the "log to file" menu item?


man script

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.terminals
Message-ID: <107840003@hpfcso.FC.HP.COM>
Organization:  4984 feet
Path: cs.utk.edu!gatech!howland.reston.ans.net!ux1.cso.uiuc.edu!sdd.hp.com
      !col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!daniel
References: <107840002@hpfcso.FC.HP.COM>
Date: Thu, 1 Jul 1993 18:59:29 GMT
From: daniel@hpfcso.FC.HP.COM (Daniel Krulewitch)
Subject: Re: Xterm Help! - logging on/off

I wrote:

> Is there any way I can toggle on/off logging while I am in the middle
> of an Xterm session.  After reading the man page I found out how to turn
> loggin on/off for the whole session, but I would like to be able to
> suspend logging intil I find the section I need to log.  Please explain
> via e-mail!
>

And the answer is.... Control key with left/right mouse button!

Thanks to all who responded!

-- 
dANIEL

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <6455475b.0406060741.42e337cf@posting.google.com>
Message-ID: <10c6iuf2spjug8c@corp.supernews.com>
Date: Sun, 06 Jun 2004 16:52:31 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: X terminal emulator and actual termcap/terminfo

Dimitry Golubovsky <dimitry-at-golubovsky.org> wrote:
>
> Does there exist an X-window terminal emulator that given a terminal
> name, reads the termcap/terminfo definition for this terminal (if
> exists) and then passes escape-sequences to the application it runs in
> accordance with that definition, not with something hardcoded during
> compilation?

no (occasionally someone discusses something of this nature, but
the only implementations I've seen handle only a small subset of
what's involved in doing this).  For example, the readme's for
gnome-terminal claim that it does this, but that is demonstrably
incorrect (except by limiting the scope to the trivial).

otoh, there's "screen" which does a lot of this sort of thing.
But it's not an "X-window terminal emulator".

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 216.103.214.41
NNTP-Posting-Date: Mon, 24 Jan 2005 16:49:01 +0000 (UTC)
References: <f59e2973.0501240637.330bfba2@posting.google.com>
Message-ID: <1106585337.867095.207600@z14g2000cwz.googlegroups.com>
Date: 24 Jan 2005 08:48:57 -0800
From: barts@smaalders.net
Subject: Re: Terminal too wide quick fix?

Ross Alexander wrote:
>
> I work for a company who make us use the standard version of vi
> (because it is installed on all our clients machines) and so I
> ocationaly get the 'Terminal too wide' when I make the window to big.
> Is there a quick way of getting back into the editor without closing
> and reopening the file?
>
> Thanks,
>
> Ross.


Not strictly an answer, but this is fixed in Solaris 10 (at last).

- Bart

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.windows.x.intrinsics,comp.windows.x
References: <42253320.50103@moderncppdesign.com>
Message-ID: <42253F4F.9080003@moderncppdesign.com>
Date: Tue, 01 Mar 2005 20:21:35 -0800
From: "Andrei Alexandrescu (See Website For Email)"
    <SeeWebsiteForEmail@moderncppdesign.com>
Subject: Keeping the X session alive upon broken connection

I am at the end of my wit after four crazy days of searching the net in
desperation.

(No, I am not Miriam Abacha and I don't want to transfer sixteen million
dollars into your account.)

After coming from the MS Windows connectivity world, where Remote
Desktop Connection allows me to remote only one entire desktop, I was
very pleased to see how my Linux machine is able to share either
separate windows or an entire desktop (or several of them!), in flexible
ways.

However, I was less than pleased when my connection broke and I noticed
that that meant instant death for *all* of my apps - the email I was
editing, emacs, everything! So I thought, I'm sure that's a common
problem that has been long solved. I first looked for a flag in the way
I start the server; then I looked for a utility; and before long, I was
desperately searching up and down the Net for a solution.

First, I was surprised that so few people have had this problem. I've
seen a few discussions on the Usenet about that, but not really like
"this is a known problem and here's how it's being fixed".

Second, I have found there are some solutions, none of which is entirely
satisfactory:

1. VNC server. The VNC server does exactly that - it creates a X server
on the remote machine, and then is able to share that for remote users.
When the remote user disconnects, the session stays there. So it's all
nice and dandy, but VNC has two problems compared to X:

a) It can't share individual windows, only full X desktops. Thus one
cannot use VNC-remoted windows managed on the user's machine.

b) It transports bits, not X commands, and as such it is slower
(transports the borders of all windows, the glyphs...) As such, X
transports less over the network because it stores (or caches) fonts
locally and it draws the borders on the user's machine.

2. xmove by Ethan Solomita.

    http://public.planetmirror.com/pub/hpfreeware/X11/Networking/xmove-2.0b2/xmove-2.0b2.README.html

This program is part of the Debian distribution, and it seems to be
awfully close to what I need to do. I even managed to compile it on my
Linux distribution. However, the lack of documentation and examples
makes it impossible for me to get my setup running.


3. XMX by John Bazik.

    http://www.cs.brown.edu/software/xmx/

This is an X multiplexer that can do many thing, among which (I believe)
resumption of sessions after broken connections. I couldn't make that
work to save my life.

4. SCO XVision with the Vision Resume feature, which is supposed to do
exactly what I want. I downloaded a trial version and couldn't get their
Vision Resume feature to work on my Cygin/X server.

===============

So, could anyone help me with that? Any chance of a simple, sensible
program that allows me to keep my X-Windows session alive, but "grayed
out" when I disconnect, so it becomes fresh again when I connect again?


Thanks in advance,

Andrei

 ..............................................................................

Newsgroups: comp.windows.x
NNTP-Posting-Host: 68.37.149.55
NNTP-Posting-Date: Wed, 02 Mar 2005 08:10:50 -0600
References: <42253320.50103@moderncppdesign.com>
Message-ID: <iczmxm16lt.fsf@home-1.localdomain>
Date: Wed, 02 Mar 2005 09:10:22 -0500
From: Dan Espen <daneNO@SPAM.mk.telcordia.com>
Subject: Re: Keeping the X session alive upon broken connection

Andrei Alexandrescu wrote:
>
> I am at the end of my wit after four crazy days of searching the net
> in desperation.
>
> However, I was less than pleased when my connection broke and I
> noticed that that meant instant death for *all* of my apps - the email
> I was editing, emacs, everything! So I thought, I'm sure that's a

Most apps aren't written to hide out when X dies and then come back
when X comes back.  I think XEmacs may be an exception.

I usually run XEmacs from home and then use 'make-frame-on-display'
to put a window on my work machine.  Up until I installed the latest
XEmacs, losing the connection would kill XEmacs.  Now it just
keeps running.

I would guess that if you start XEmacs with the -unmapped flag
and then use gnuclient to create your windows, XEmacs might survive.
You would then be able to get back into XEmacs with gnuclient.

I do just about everything with XEmacs including email,
so this may not be a generic solution, but it covers quite a bit
for me.

 ..............................................................................

Newsgroups: comp.windows.x
NNTP-Posting-Host: ngs.nimblegen.com
NNTP-Posting-Date: Wed, 2 Mar 2005 15:07:35 +0000 (UTC)
References: <42253320.50103@moderncppdesign.com>
Message-ID: <d04krm$48g$1@grandcanyon.binc.net>
Organization: NimbleGen Systems Inc.
Date: Wed, 02 Mar 2005 09:08:27 -0600
From: Chuck Dillon <spam@nimblegen.com>
Subject: Re: Keeping the X session alive upon broken connection

> First, I was surprised that so few people have had this problem. I've
> seen a few discussions on the Usenet about that, but not really like
> "this is a known problem and here's how it's being fixed".

That's because it's not broken.  If you don't have a reliable network
or Xserver host, you can't fault X.  You need another layer of
abstraction to isolate the applications from dependency on the network
and/or the Xserver that is serving the physical devices.  That's what
VNC and XMX and others do.

There are a lot of VNC users so you can find help with setting it up
and determining what it can and can't do.  I don't think XMX is nearly
as widely used so you may be more on your own with it.

If you haven't found it already take a look at Ken Lee's site

    http://www.rahul.net/kenton/xsites.framed.html

and search for "groupware" for some other possibilities.

-- ced

 ..............................................................................

Newsgroups: comp.windows.x
NNTP-Posting-Host: 12.218.19.145
NNTP-Posting-Date: Wed, 02 Mar 2005 20:22:47 GMT
References: <42253320.50103@moderncppdesign.com>
Message-ID: <Lucy1109785758275960x660a78@air.tunestar.net>
Date: Wed, 02 Mar 2005 20:22:47 GMT
From: nospam@geniegate.com
Subject: Re: Keeping the X session alive upon broken connection

In: <42253320.50103@moderncppdesign.com>, "Andrei Alexandrescu" wrote:
>
> However, I was less than pleased when my connection broke and I noticed
> that that meant instant death for *all* of my apps - the email I was
> editing, emacs, everything! So I thought, I'm sure that's a common
> problem that has been long solved. I first looked for a flag in the way
> I start the server; then I looked for a utility; and before long, I was
> desperately searching up and down the Net for a solution.


As much as it isn't really a solution, what I do is run everything
through the 'screen' command. (But then, I seldom use graphical
programs, web browser is about it)

I do wish there were a simple solution for this, something that worked
across platforms as I frequently detach my screen session and then
re-attach it from another host.

Something like 'screen' for X11 would really be handy, but only
handy (for me anyway) if it worked cross-platform, some platforms
being really quite ancient.

Jamie
-- 
http://www.geniegate.com/                    Custom web programming
guhzo_42@lnubb.pbz (rot13)                User Management Solutions


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.programmer, comp.unix.solarisNNTP-Posting-Host: 4.246.87.93
NNTP-Posting-Date: Sat, 23 Jul 2005 13:58:57 PDT
Message-ID: <lcyEe.2890$0C.2216@newsread3.news.pas.earthlink.net>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Date: Sat, 23 Jul 2005 20:58:57 GMT
From: noone@nowhere.com
Subject: How to remove title on xterm when using Exceed

Hi,

I'm on a PC and using Exceed to connect to unix systems (Sun and  AIX). 
Once on the unix system I have an application "foo" that is supposed to
create xterm windows without title bars and borders.  So I have in my
.Xdefaults file the following line:

*foo.clientDecoration: none -border -title

The app creates the xterm windows but the title and border are still on the
xterm windows.

I can cause the problem interactively by entering the following command:

xterm -name foo

With the command above I expect the xterm window to have NO title bar and NO
border but alas I still get the title and borders.  NOTE: It works fine if I
use WebTermX (another X emulator).

Why is my .Xdefaults clientDecoration line being ignored? NOTE: Other lines
in .Xdefaults are working as desired so I know .Xdefaults is being read.

Thanks for taking time to answer my question.

Duane

 ..............................................................................

Newsgroups: comp.unix.programmer, comp.unix.solarisReferences: <lcyEe.2890$0C.2216@newsread3.news.pas.earthlink.net>
Message-ID: <11e7vbb2fp4491@corp.supernews.com>
Date: Sun, 24 Jul 2005 20:43:23 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: How to remove title on xterm when using Exceed

In comp.unix.programmer, Duane <noone@nowhere.com> wrote:
> Hi,
> I'm on a PC and using Exceed to connect to unix systems (Sun and AIX).
...
> Why is my .Xdefaults clientDecoration line being ignored? NOTE: Other lines
> in .Xdefaults are working as desired so I know .Xdefaults is being read.


The answer is really specific to the window manager (in your case, Exceed).
There might be knowledgable users of Exceed in this newsgroup, but it is
not a Unix question.

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
References: <m3acm4dz0r.fsf@jin.myrkraverk.com>
Message-ID: <11aarsbmun10651@corp.supernews.com>
Date: Tue, 07 Jun 2005 09:57:31 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Problem with terminfo's sgr

Johann 'Myrkraverk' Oskarsson <myrkraverk@users.sourceforget.net> wrote:
>
> I've been playing with mrxvt, and tried setting TERM=xterm-256color
> which works, most of the time.

> However on one host, it doesn't.  I'm using the same terminfo entry on
> all hosts, so this is a bit puzzling to me.  I managed to track the
> problem to the sgr entry in the terminfo.  This is the one that
> doesn't work:

> sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;
>     %?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;


"doesn't work" for what applications?

There's a bug that I fixed last year for termcap support of applications
such as screen which are confused by the corresponding sgr0 string when
it modifies the alternate character set mode.

See   http://invisible-island.net/ncurses/NEWS.gz

20040710
        + modify logic in tgetent() which adjusts the termcap "me" string
          to work with ISO-2022 string used in xterm-new (cf: 20010908).

(curses applications are unaffected, but it's noticable in screen).

> Also, why only *this* host, why not all the others too?

different versions, different bugs

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////

ewsgroups: comp.mail.pine
NNTP-Posting-Host: 203a836f4634ee09c21e74af4d62d6fa
NNTP-Posting-Date: Fri, 09 Jun 2006 10:06:43 GMT
References: <Pine.GSO.4.58.0605311354580.29371@harvey.caam.rice.edu>
    <1149107853.183365.19850@j55g2000cwa.googlegroups.com>
    <Pine.LNX.4.63.0606042225520.743@kd6lvw.ampr.org>
    <1149464501.877938.68820@f6g2000cwb.googlegroups.com>
Message-ID: <Pine.LNX.4.64.0606091002120.929@kd6lvw.ampr.org>
Date: Fri, 09 Jun 2006 10:06:43 GMT
From: D. Stussy <att-spam@bde-arc.ampr.org>
Subject: Re: 16-color palette limitation

On Sun, 4 Jun 2006, dickey wrote:
>
> D. Stussy wrote:
> >
> > On Wed, 31 May 2006, dickey wrote:
> > >
> > > Fernando Gonzalez del Cueto wrote:
> > > >
> > > > I don't seem to find a way of using the 256-colors offered by xterm.
> > > >
> > > > I'd like to be able to have more than the horrid 16 ANSI colors for
> > > > pine.  Is there any way?
> > >
> > >
> > > ANSI defines 8 colors, not 16.
> >
> >
> > Correct and incorrect.  There are 8 colors but also a 1-bit intensity
> > (bold) setting for the foreground.  Thus, there are 8 background colors
> > and 16 foreground colors.
>
>
> no.  bold, underline, dim, reverse and blink are in a different
> category (video attributes).
>
> Otherwise we'd count that as 8 times whatever combination of video
> attributes a terminal supports.
>
> For xterm that would be 8 * 16 colors, which of course is absurd.
>
> That's in the standard of course...


Then explain how you just crammed 11 bits of information into 8 bits in
hardware....

ANSI colors come from the time where the MDA and CGA were the displays of
choice.  There is no "dim" (except to reverse bold) supported by the hardware.

Only MDAs supported underline, because this was color 001.  Reverse actually
swapped the foreground and background colors at the software level.

In addition to the 6 bits for colors (3 for foreground & 3 for background), CGA
hardware only supported bold and blink.

Now go away.

 ..............................................................................

Newsgroups: comp.mail.pine
References: <Pine.GSO.4.58.0605311354580.29371@harvey.caam.rice.edu>
    <1149107853.183365.19850@j55g2000cwa.googlegroups.com>
    <Pine.LNX.4.63.0606042225520.743@kd6lvw.ampr.org>
    <1149464501.877938.68820@f6g2000cwb.googlegroups.com>
    <Pine.LNX.4.64.0606091002120.929@kd6lvw.ampr.org>
Message-ID: <128irhendanbc0@corp.supernews.com>
Date: Fri, 09 Jun 2006 12:48:46 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: 16-color palette limitation

D. Stussy <att-spam@bde-arc.ampr.org> wrote:
> On Sun, 4 Jun 2006, dickey wrote:
>> D. Stussy wrote:
> Then explain how you just crammed 11 bits of information into 8 bits in
> hardware....

go play with your taxes (bye)

> Now go away.

;-)


-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 62.195.77.111
References: <1129915380.758299.226870@z14g2000cwz.googlegroups.com>    
    <43592ada$0$11079$e4fe514c@news.xs4all.nl>    
    <11llf5uiad2e2b5@corp.supernews.com>    
    <435b5a9a$0$11065$e4fe514c@news.xs4all.nl>
    <11loenrfit1v1ad@corp.supernews.com>
Message-ID: <435caaf5$0$11073$e4fe514c@news.xs4all.nl>
Organization: Sun Microsystems, Netherlands
Date: 24 Oct 2005 09:35:49 GMT
From: Casper H.S. Dik <Casper.Dik@Sun.COM>
Subject: Re: how to set argv command line args for ps

Richard.L.Hamilton@mindwarp.smart.net (Richard L. Hamilton) writes:
>
> Still, command line args (either way), as well as a number of other things
> (file names, contents) _could_ be used to do evil things to root (or a
> user eligible to see the data), if it was using a terminal on which escape
> sequences could set and then report back strings.  Of course that's
> nothing peculiar to ps.

Quite; that's why you shouldn't be using terminals with programmable
answerback sequences.

And the people who fixed "xterm should be able to report windowtitle"
in some versions of xterm have introduced a security problem because of it.

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 ..............................................................................

Newsgroups: comp.unix.solaris
References: <1129915380.758299.226870@z14g2000cwz.googlegroups.com>   
    <43592ada$0$11079$e4fe514c@news.xs4all.nl>   
    <11llf5uiad2e2b5@corp.supernews.com>   
    <435b5a9a$0$11065$e4fe514c@news.xs4all.nl>   
    <11loenrfit1v1ad@corp.supernews.com>   
    <435caaf5$0$11073$e4fe514c@news.xs4all.nl>   
    <11lpfvlabvrau48@corp.supernews.com>
Message-ID: <11lqhssq0k0l45e@corp.supernews.com>
Organization: Timetravellers Anonymous
Date: Mon, 24 Oct 2005 20:44:12 -0000
From: Richard L. Hamilton <Richard.L.Hamilton@mindwarp.smart.net>
Subject: Re: how to set argv command line args for ps

In article <11lpfvlabvrau48@corp.supernews.com>,
        Thomas Dickey <dickey@saltmine.radix.net> writes:
>
> Casper H.S. Dik <Casper.Dik@sun.com> wrote:
>>
>> And the people who fixed "xterm should be able to report windowtitle"
>> in some versions of xterm have introduced a security problem because of it.
> >
> > more to the point: people who live in glass houses shouldn't throw bricks.
> 
> hmm - you've done nothing about dtterm, right?


For a 'bot that jumps on every mention of xterm (or is it just in c.u.s?),
he's got a point.  From dtterm(5) man page:


        Esc [ p1 ; p2 ; p3 t
                Window manipulation.  Valid values  for  p1  (and
                any additional parameters) are:
[...]
                   20    Report  the  dtterm(1)   window's   icon
                         label.   The  terminal  emulator returns
                         ``Esc ] L label Esc Backslash''.

                   21    Report  the  dtterm(1)  window's  title.
                         The  terminal emulator returns ``Esc ] l
                         title Esc Backslash''.

-- 
mailto:rlhamil@smart.net  http://www.smart.net/~rlhamil
Lasik/PRK theme music:
    "In the Hall of the Mountain King", from "Peer Gynt"

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: soda.csua.berkeley.edu
NNTP-Posting-Date: Tue, 25 Oct 2005 03:25:52 +0000 (UTC)
References: <1129915380.758299.226870@z14g2000cwz.googlegroups.com>
    <11lqhssq0k0l45e@corp.supernews.com> <11lqjl59pjta699@corp.supernews.com>
    <djk12r$aj6$1@neuromancer.cse.psu.edu>
Message-ID: <djk8k0$udk$1@agate.berkeley.edu>
Organization: University of California, Berkeley
Date: Tue, 25 Oct 2005 03:25:52 +0000 (UTC)
From: Alan Coopersmith <alanc@alum.calberkeley.org>
Subject: Re: how to set argv command line args for ps

groenvel@cse.psu.edu (John D Groenveld) writes in comp.unix.solaris:
|
|In article <11lqjl59pjta699@corp.supernews.com>,
|Thomas Dickey  <dickey@saltmine.radix.net> wrote:
|
|> http://groups.google.com/group/comp.unix.misc/browse_frm/thread/160f49088ea66fb4/cf4b8f3ea569edfe?lnk=st&q=dickey+dik+dtterm&rnum=4&hl=en#cf4b8f3ea569edfe
|>
|>(looking forward to Casper's announcement of an updated dtterm ;-)
|
| Is there an RFE for making answerback an option feature?

[In 2005]

RFE's against dtterm are unlikely to go anywhere.   CDE is pretty much
in sustaining mode, with minimal enhancements being made, and dtterm is
no exception.   (dtlogin is the biggest exception, since it's still the
default login system for both CDE & GNOME.)

-- 
________________________________________________________________________
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
 http://www.csua.berkeley.edu/~alanc/   *   http://blogs.sun.com/alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 ..............................................................................

Newsgroups: comp.unix.solaris
References: <1129915380.758299.226870@z14g2000cwz.googlegroups.com>
    <djk12r$aj6$1@neuromancer.cse.psu.edu> <djk8k0$udk$1@agate.berkeley.edu>
    <djkctq$h9m$1@neuromancer.cse.psu.edu> <djkk0g$11ub$1@agate.berkeley.edu>
Message-ID: <11ls4gpaceb7829@corp.supernews.com>
Date: Tue, 25 Oct 2005 11:08:09 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: how to set argv command line args for ps

Alan Coopersmith <alanc@alum.calberkeley.org> wrote:
>
> groenvel@cse.psu.edu (John D Groenveld) writes in comp.unix.solaris:
> |
> |Please let us know if you spot CDE EOL notice in docs.sun.com release
> |notes or where ever the new policy states such customer notifications
> |of lifecycle changes should go. 
>
> That's still the release notes.   I wouldn't be at all surprised to
> see one there in the release notes for the release currently code-named
> "Nevada."

That sounds like it'll just leave gnome-terminal and some flavors of xterm
(including Sun's color xterm ;-).  And of course the non-X Sun console that's
more than once been the subject of some confusion this year.

It would be nice if Casper were able to direct his remarks about the topic
to _constructive_ comment telling how Sun has patched gnome-terminal to avoid
the problem that he's concerned about.  Google doesn't show me any instance
where Sun is reported to have patched gnome-terminal ...

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 24.67.253.205
NNTP-Posting-Date: Tue, 25 Oct 2005 10:29:43 MDT
References: <1129915380.758299.226870@z14g2000cwz.googlegroups.com>
    <djk12r$aj6$1@neuromancer.cse.psu.edu> <djk8k0$udk$1@agate.berkeley.edu>
    <djkctq$h9m$1@neuromancer.cse.psu.edu> <djkk0g$11ub$1@agate.berkeley.edu>
Message-ID: <Pine.SOL.4.58.0510250927200.19860@excalibur>
Date: Tue, 25 Oct 2005 16:29:43 GMT
From: Rich Teer <rich.teer@rite-group.com>
Subject: Re: how to set argv command line args for ps

On Tue, 25 Oct 2005, Alan Coopersmith wrote:
>
> groenvel@cse.psu.edu (John D Groenveld) writes in comp.unix.solaris:
> |
> |Please let us know if you spot CDE EOL notice in docs.sun.com release
> |notes or where ever the new policy states such customer notifications
> |of lifecycle changes should go.
>
> That's still the release notes.   I wouldn't be at all surprised to
> see one there in the release notes for the release currently code-named
> "Nevada."

Change and progress is inevitable, I guess, but dropping CDE before
JDS/GNOME's issues are sorted out (W.R.T. meeting the needs of CDE users)
would be a mistake, IMHO.

-- 
Rich Teer, SCNA, SCSA, OpenSolaris CAB member
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
  URL: http://www.rite-group.com/rich

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: aachen95.eed.ericsson.se
NNTP-Posting-Date: 17 Oct 2006 17:14:28 GMT
References: <1161029790.061235.25760@i3g2000cwc.googlegroups.com>
Message-ID: <eh331k$44a$1@aken.eed.ericsson.se>
Organization: Ericsson Eurolab Germany
Date: Tue, 17 Oct 2006 19:14:30 +0200
From: Michael Tosch <eedmit@NO.eed.SPAM.ericsson.PLS.se>
Subject: Re: Cannot open dtterm

googler wrote:
>
> I have quite a few dtterm terminals open and when I try to open one
> more window by right clicking on desktop, then Tools -> Terminal, then
> it does not work. However if I close one of the windows and then try,
> it works. Also, if I try typing dtterm from the command line (without
> closing any dtterm window), that works too. Is there a maximum number
> of dtterm windows beyond which we cannot open any more? Then why does
> it work in the third case? Any explanation will be helpful. This is on
> SunOS 5.8. Thanks!


The Solaris Xserver defaults to only 128 X-clients.
Change /usr/dt/config/Xservers to

... /usr/openwin/bin/Xsun :0 -nobanner -clients 1024

and re-login.

Sun recommends to not directly edit the original file;
instead do

   mkdir -p /etc/dt/config
   cp  /usr/dt/config/Xservers /etc/dt/config/Xservers

and change /etc/dt/config/Xservers


-- 
Michael Tosch @ hp : com

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.terminals
NNTP-Posting-Host: 194.138.39.55
X-Trace: posting.google.com 1095757703 13207 127.0.0.1 (21 Sep 2004 09:08:23 GMT)
NNTP-Posting-Date: Tue, 21 Sep 2004 09:08:23 +0000 (UTC)
Message-ID: <fdf52b9b.0409210108.3d4bcd4d@posting.google.com>
Date: 21 Sep 2004 02:08:23 -0700
From: "Richard B. Kreckel" <richard.kreckel@framatome-anp.com>
Subject: Question about restoring of terminal attributes

Hi,

Consider the following little program which turns off echoing and does
not turn it on again.  (Compiles under Linux).

#include <termios.h>
#include <curses.h>
#include <term.h>
#include <unistd.h>
#include <signal.h>
#include <sys/ioctl.h>

int main()
{
    struct termios old_termio;
    tcgetattr( 0, &old_termio );  // Assume 0 is a tty.
    struct termios rl_termio = old_termio;
    rl_termio.c_lflag &= ~( ECHO | ECHOE | ECHOK | ECHONL );
    tcsetattr( 0, TCSANOW, &rl_termio );

    sleep( 1 );
    raise( SIGKILL );   // <=== kill self!

    return 0;
}

The fun part is: If the program kills itself, I end up with an xterm
that just works fine while if it does not kill itself I have to reset
it in order to be able to see what I type.

For me, this is a surprise: I would have expected the terminal to end
up messed up in either case!  And the question is: Who restores the
terminal if the signal is raised and what is the rationale?

TIA
   -richy.

-- 
Richard B. Kreckel                     <http://www.ginac.de/~kreckel/>
Framatome ANP GmbH, NGLTD
Tel: (+49)9131/189-5275, Fax: (+49)9131/189-9908


 //////////////////////////////////////////////////////////////////////////////


From alanc@alum.calberkeley.org Fri Aug 11 21:20:47 2006
Newsgroups: comp.unix.solaris
NNTP-Posting-Host: soda.csua.berkeley.edu
NNTP-Posting-Date: Fri, 11 Aug 2006 17:36:31 +0000 (UTC)
References: <1155268512.248435.56110@p79g2000cwp.googlegroups.com> <12donejrr2ngn37@corp.supernews.com>
Message-ID: <ebif6v$p0i$1@agate.berkeley.edu>
Organization: University of California, Berkeley
Date: Fri, 11 Aug 2006 17:36:31 +0000 (UTC)
From: Alan Coopersmith <alanc@alum.calberkeley.org>
Subject: Re: how do i blink text in ksh on solaris 10

Thomas Dickey <dickey@saltmine.radix.net> writes in comp.unix.solaris:
|a reasonably recent version of xterm supports blinking text.
|iirc, Solaris has only old versions of xterm

/usr/openwin/bin/xterm on Solaris 9 and later is a few years old (not
as ancient as the X11R6.0 version in Solaris 2.6 - 8), but is from the 
li18nux.org fork of xterm, so has a different feature set than the
XFree86 xterm of the same vintage.

The XFree86 xterm is available on the Solaris companion CD for those who
prefer that version, though I'm not sure how up to date it is.

Someday when I've got a good asbestos suit on I'll go talk to our i18n
folks again about switching from the li18nux version to the mainstream
xterm, but I'm not looking forward to that fight.

-- 
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
  http://blogs.sun.com/alanc/ *  http://people.freedesktop.org/~alanc/
   http://del.icio.us/alanc/  *  http://www.csua.berkeley.edu/~alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
References: <1168487322.294175.136420@o58g2000hsb.googlegroups.com>
    <87sleican2.fsf@virgo.contecint.com.au>
Message-ID: <12qcbikg0tl1r3d@corp.supernews.com>
Date: Thu, 11 Jan 2007 12:32:20 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Flashing xterm window after backspace

Matt Atterbury <mat03@virgo.contecint.com.au> wrote:
>
> "kimi" <testcpp@gmail.com> writes:

>> Hi,
>> I've never used a Solaris workstation before so maybe I could receive
>> some help.  I've read the man page for xterm and also searched all the
>> Google groups and also general Google web searches and can't determine
>> a fix.  The user manuals offer no help.
>>
>> I'm working on an xterm window and if there's a black background and
>> if I have a white/yellow/green foreground (the characters I'm typing
>> are in those colours) and if I hit the backspace or return, or just
>> reach the beginning of the line, then the xterm window will "flash"
>> once briefly with the fore ground colour, just for a short time.  This
>> is okay, but it's getting to be bothersome after using it for several
>> hours.
>>
>> Are there any ways around this?  I've managed to shut the infernal
>> beeping off but this flashing is getting to be bothersome.
>>
>> Kim


> Have you eliminated the beeping by turning on "Enable Visual Bell"
> using control-middle-mouse, perchance?


He's describing the visual bell, so there's no point in turning that on.

However, to answer his question properly, one needs more information.
Sun distributes two rather old versions of xterm (one is a hacked up
copy of X11R6.3 xterm, the other is patch #196 of modern xterm).

For the latter, there's some possible fixes via resource settings:

     bellSuppressTime (class BellSuppressTime)
             Number of milliseconds after a bell command is  sent
             during  which  additional  bells will be suppressed.
             Default is 200.  If set non-zero,  additional  bells
             will  also  be  suppressed  until the server reports
             that processing of the  first  bell  has  been  com-
             pleted; this feature is most useful with the visible
             bell.

     visualBellDelay (class VisualBellDelay)
             Number of milliseconds to delay  when  displaying  a
             visual  bell.   Default  is 100.  If set to zero, no
             visual bell is displayed.  This is useful  for  very
             slow displays, e.g., an LCD display on a laptop.


For the former - presumably Sun supports that, though I've seen no
indication of that in this newsgroup.

-- 
Thomas E. Dickey
http://invisible-island.net/
 ftp://invisible-island.net/

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: 85.99.253.6
NNTP-Posting-Date: Thu, 11 Jan 2007 09:14:09 +0000 (UTC)
References: <1168487322.294175.136420@o58g2000hsb.googlegroups.com>
Message-ID: <1168506847.365467.153760@p59g2000hsd.googlegroups.com>
Date: 11 Jan 2007 01:14:07 -0800
From: oaksoy@gmail.com
Subject: Re: Flashing xterm window after backspace


Hi Kim,

to the .inputrc file in your home directory, add the following line:

  set bell-style none

Orhan

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: apocalypse.ocf.berkeley.edu
NNTP-Posting-Date: Fri, 12 Jan 2007 02:48:31 +0000 (UTC)
References: <1168487322.294175.136420@o58g2000hsb.googlegroups.com>
    <87sleican2.fsf@virgo.contecint.com.au> <12qcbikg0tl1r3d@corp.supernews.com>
Message-ID: <eo6stv$af2$1@agate.berkeley.edu>
Organization: University of California, Berkeley
Date: Fri, 12 Jan 2007 02:48:31 +0000 (UTC)
From: Alan Coopersmith <alanc@alum.calberkeley.org>
Subject: Re: Flashing xterm window after backspace

Thomas Dickey <dickey@saltmine.radix.net> writes in comp.unix.solaris:
|
| Sun distributes two rather old versions of xterm (one is a hacked up
| copy of X11R6.3 xterm, the other is patch #196 of modern xterm).

While Solaris 10 will probably stay stuck like that, management has
recently asked we dig out of the xterm hole by dumping both of the above
for the next release of Solaris and just shipping the latest official
xterm (i.e. the one X.Org has anointed, and which you maintain on your
site) as the one and only xterm in Solaris, so there is hope in the future.

(Not sure yet when we'll get there, since it's lower on the priority
list than replacing our current Xorg 6.9 with 7.2 and a few other
similar projects, but hopefully later this year we'll see it in Solaris
Express.)

-- 
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
 http://www.csua.berkeley.edu/~alanc/   *   http://blogs.sun.com/alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: apocalypse.ocf.berkeley.edu
NNTP-Posting-Date: Wed, 17 Jan 2007 02:33:49 +0000 (UTC)
References: <1168487322.294175.136420@o58g2000hsb.googlegroups.com>
    <12qcbikg0tl1r3d@corp.supernews.com> <eo6stv$af2$1@agate.berkeley.edu>
    <12qiev93cl3bdeb@corp.supernews.com>
Message-ID: <eok1ud$502$1@agate.berkeley.edu>
Date: Wed, 17 Jan 2007 02:33:49 +0000 (UTC)
From: Alan Coopersmith <alanc@alum.calberkeley.org>
Subject: Re: Flashing xterm window after backspace

| btw, I noticed this page (don't see a contact address):
|
| http://www.opensolaris.org/os/project/companion/contributors/content/;jsessionid=0EA1B4DE9D180D56640C929BE4DEC04A
|
| which asserts that ncurses, vim and xterm are licensed with GPL2
| (there may be other errors, but those I knew offhand).

I'll poke the maintainers to correct that.  (I believe
"companion-discuss@opensolaris.org" is the best place to
discuss that table.)

--
________________________________________________________________________
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
 http://www.csua.berkeley.edu/~alanc/   *   http://blogs.sun.com/alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.



 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.solaris
NNTP-Posting-Host: eisner.encompasserve.org
NNTP-Posting-Date: Thu, 29 Nov 2007 13:02:05 +0000 (UTC)
References: <figu0t$78m$1@newsreader2.netcologne.de>
    <fih896$qj4$2@canopus.cc.umanitoba.ca> <Js8nD0.H7M@clerew.man.ac.uk>
    <5r77b5F12scp7U24@mid.individual.net>
Message-ID: <jf7m71pOYBxM@eisner.encompasserve.org>
Date: 29 Nov 2007 07:03:03 -0600
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: Terminal emulators, was: Re: cmdtool replacement


In article <5r77b5F12scp7U24@mid.individual.net>, Ian Collins
<ian-news@hotmail.com> writes:
> Charles Lindsey wrote:
>>
>> Eh? Dtterm is the worst terminal emulator it has been my misfortune to
>> encounter.
>>
> You must have had a sheltered life :)
>

dtterm may not be the worst terminal emulator ever, but it's a strong
contender. I'm currently looking at Solaris, and I was amazed that it
didn't come with a high quality emulator as standard.

When I look at terminal emulators, I'm looking for accurate keyboard
emulation as well as accurate display emulation and it seems to me that
many of the so called emulators just ignore the keyboard side of things.

Of all the emulators that I've looked at on Linux/FreeBSD/etc, only PuTTY,
the Linux text mode virtual console and Thomas Dickey's version of xterm
come anywhere close to been a full and accurate emulator.

Unfortunately, xterm has a lousy user interface, PuTTY is restricted to
connecting to remote systems only, and I'm not about to start developing
software/manage systems using the Linux virtual consoles.

Simon.

PS: My opinions are influenced by the fact that I use the full range of
the capabilities of VT terminals when using an emulator, including
connecting to VMS systems and doing local editing using emacs in
application keypad mode.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980's technology to a 21st century world

 ..............................................................................

Newsgroups: comp.unix.solaris
References: <figu0t$78m$1@newsreader2.netcologne.de>
    <fih896$qj4$2@canopus.cc.umanitoba.ca> <Js8nD0.H7M@clerew.man.ac.uk>
    <5r77b5F12scp7U24@mid.individual.net>
    <jf7m71pOYBxM@eisner.encompasserve.org>
Message-ID: <13kue6c1i4g3l0e@corp.supernews.com>
Organization: RadixNet Internet Services
Date: Thu, 29 Nov 2007 22:10:20 -0000
From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Terminal emulators, was: Re: cmdtool replacement

Simon Clubley <clubley@remove_me.eisner.decus.org-earth.ufp> wrote:

> dtterm may not be the worst terminal emulator ever, but it's a strong
> contender. I'm currently looking at Solaris, and I was amazed that it
> didn't come with a high quality emulator as standard.

( no - they added gnome-terminal a while back ;-)

> Unfortunately, xterm has a lousy user interface, PuTTY is restricted to
> connecting to remote systems only, and I'm not about to start developing
> software/manage systems using the Linux virtual consoles.

sort of - I generally use xterm configured with a menubar.
PuTTY has a port to UNIX called "pterm" (ymmv).

--
Thomas E. Dickey
http://invisible-island.net/

 ..............................................................................

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: eisner.encompasserve.org
NNTP-Posting-Date: Fri, 30 Nov 2007 14:19:28 +0000 (UTC)
References: <figu0t$78m$1@newsreader2.netcologne.de>
    <fih896$qj4$2@canopus.cc.umanitoba.ca> <Js8nD0.H7M@clerew.man.ac.uk>
    <5r77b5F12scp7U24@mid.individual.net>
    <jf7m71pOYBxM@eisner.encompasserve.org> <13kue6c1i4g3l0e@corp.supernews.com>
Message-ID: <EFlrpq8nxps$@eisner.encompasserve.org>
Organization: Encompasserve
Date: 30 Nov 2007 08:20:51 -0600
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: Re: Terminal emulators, was: Re: cmdtool replacement

In article <13kue6c1i4g3l0e@corp.supernews.com>, Thomas Dickey
<dickey@saltmine.radix.net> writes:
> Simon Clubley <clubley@remove_me.eisner.decus.org-earth.ufp> wrote:
>
>> Unfortunately, xterm has a lousy user interface, PuTTY is restricted to
>> connecting to remote systems only, and I'm not about to start developing
>> software/manage systems using the Linux virtual consoles.
>
> sort of - I generally use xterm configured with a menubar.
> PuTTY has a port to UNIX called "pterm" (ymmv).


"pterm"

I knew that PuTTY has a Unix port (I'm using it on Linux), but I had
completely missed that the Unix port had an additional pterm component. :-(

Looking at the website, I see why: There's no mention of it on the main page
or the download page and the first reference I found is buried in the FAQ.

It works great on Linux, and gives me the majority of what I need, but
attempts to build it on Solaris 10 with the help of a patch found at
OpenSolaris.org either fail (with Makefile.gtk) or build a binary (with
./configure) that outputs a Solaris header and then nothing.

I may have another look when I've more time, but I have seen the compatibility
warnings in the source kit about using alternate pty implementations.

Thanks for supplying the pointer,

Simon.

 //////////////////////////////////////////////////////////////////////////////


Newsgroups: comp.unix.solaris
NNTP-Posting-Date: Thu, 26 Mar 2009 19:57:38 UTC
References: <fde2f747-72f6-45b4-a9ff-22332ea25af5@b16g2000yqb.googlegroups.com>
Message-ID: <2009032615573875249-rlhamil@smartdotnet>
Organization: Timetravellers Anonymous
Date: Thu, 26 Mar 2009 15:57:38 -0400
From: Richard Hamilton <rlhamil@smart.dot.net>
Subject: Re: XSun: Slow Scroll

On 2009-03-16 04:16:51 -0400, Moody <nasir.mahmood@gmail.com> said:
>
> Hello,
>
> I've just installed a sunblade-150 with solaris-10. Problem is with X-
> Display being very slow to scroll even the terminal in windowing
> environment with half the screen displaying old contents and rest with
> new and after 1-2 seconds it goes normail when I scroll. Can someone
> help me how to fasten the fresh rate or get rid of this very slow
> scroll issue in X
>
> Regards,
> /Nasir/


The Sun Blade 100 or 150 (I've got a 100) has a single 32-bit, 33MHz
PCI bus shared by its graphics and pretty much all the rest of its
other peripherals. For a large window, there may simply not be enough
bandwidth to push that many pixels around as quickly as you might like.

But I suspect it's something else, because I've not found that
objectionable, although I've not used the console of my 100 lately
(having also obtained a used 2000, so the 100 has been relegated to
handling my email and such).

You don't mention what frame buffer (graphics card) you're using - the
built-in PGX64 (aka m64), or one of the possible add-on cards.  But I
doubt that would make a huge differences, given the bandwidth bottleneck
I mentioned previously.

You also don't mention which terminal app you are using.  I've not
noticed such problems with CDE's dtterm, nor even with at least some
versions of xterm.  But I've heard stories of problems with
gnome-terminal.  Xsun doesn't support some of the extensions that GNOME
apps like, and Xorg (which does) doesn't support most of the frame
buffers used on SPARCs.

So some or all of the info you didn't mention may be needed to explain
what's happening. (but not by me, probably - my 100 only runs Solaris 9,
and my 2000 runs SXCE and has a _much_ faster frame buffer).


 //////////////////////////////////////////////////////////////////////////////

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: d154034.upc-d.chello.nl [213.46.154.34]
References: <e2fc02f9-6c68-4042-b1cb-0e6c849b8ad3@s17g2000vbs.googlegroups.com>
    <slrnhnrhvd.8e5.dave@fly.srk.fer.hr>
Message-ID: <4b7e63c8$0$22942$e4fe514c@news.xs4all.nl>
Organization: Sun Microsystems, Netherlands
Date: 19 Feb 2010 10:11:20 GMT
From: Casper H.S. Dik <Casper.Dik@Sun.COM>
Subject: Re: Future Terminal Emulator?

Drazen Kacar <dave@fly.srk.fer.hr> writes:
>
> I'm considering moving to xterm, but I suppose I'll have to compile
> it myself.


It is still a part of Solaris/OpenSolaris.


Casper

-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Newsgroups: comp.unix.solaris
NNTP-Posting-Host: bass.unixhome.net [68.145.168.233]
NNTP-Posting-Date: Sat, 20 Feb 2010 15:40:49 UTC
References: <e2fc02f9-6c68-4042-b1cb-0e6c849b8ad3@s17g2000vbs.googlegroups.com>
    <slrnhnrhvd.8e5.dave@fly.srk.fer.hr>
Message-ID: <5oTfn.869$sx5.637@newsfe16.iad>
Date: Sat, 20 Feb 2010 08:40:48 -0700
From: Canuck57 <Canuck57@nospam.com>
Subject: Re: Future Terminal Emulator?

On 18/02/2010 4:06 PM, Drazen Kacar wrote:
>
> ChrisS wrote:
> >
> >   What Terminal Emulator do you (a Solaris admin) use on Solaris 10 and
> >   OpenSolaris?
>
> I use wterm, with some home-made patches.
>
> >   I know I'll get picked on here for admitting this, but as an
> >   administrator I always go back to CDE's dtterm.  It's light-weight,
>
> A long time ago someone said people would start calling Motif applications
> "lightweight" one day and I didn't believe. :-)


Neither did I, yet, by today's standards, it is a lean model.


> >   What does an old dinosaur do; just suck it up and use gnome-
> >   terminal?   Go back to xterm?
>
>
> I'm considering moving to xterm, but I suppose I'll have to compile it
> myself.

Have been using xterm since I don't know when, perhaps 80's.  Certainly in
the 90's.  Always is consistant and there.

 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /

    See also "gnome_terminal_news.txt".

 //////////////////////////////////////////////////////////////////////////////

