HDTenEightyP/NetNews huggingface dataset:
From: ghudson@athena.mit.edu (Greg Hudson)
Newsgroups: comp.windows.x
Subject: xterm termcap question
Date: 21 Jan 1993 13:37:00 GMT
Organization: Massachusetts Institute of Technology
Distribution: world
NNTP-Posting-Host: lockpick.mit.edu
Summary: xterm termcap lacking "cs" capability

I haven't been lurking for a few weeks to make sure I'm avoiding
common gaffes, but I have checked the FAQ briefly.  I apologize if I
missed this question on the FAQ, but it seems unlikely, since it's
actually a question about tty programming.

I'm the author of a couple of client programs that support full-screen
tty displays, and I often run into the problem that the xterm termcap
seems to be missing the "cs" (set scroll area) capability, even though
xterms support it.  Users can set their TERM to vt100 and everything
is fine, but my users don't generally know this, and I'd rather deal
with the problem transparently if possible.  Unfortunately, most
setups I've seen set the TERMCAP environment variable with all the
termcap information so that the li# and co# fields will be correct, so
the simple

	term = getenv("TERM");
	if (!term)
		barf();
	if (strcmp(term, "xterm") == 0)
		term = "vt100";

shouldn't help most of the time.

Has anybody else dealt with this problem?  Does anyone know *why* the
xterm termcap is missing this capability?  My current plan is to check
for an xterm termtype and hardcode the cs capability for it, but
that's an ugly solution.  Of course, I may eventually write an X
interface for my most recent program, and this would be the ideal
solution.

Thanks for any help.

--GBH
Organization: Rohm and Haas Company
Date: Thu, 28 Jan 1993 15:36:18 EST
From: Thomas J Cozzolino <RBNTJC@rohvm1.rohmhaas.com>
Newsgroups: comp.windows.x
Subject: XVision, FTP's TCP, and RS/6000 - Yikes!

Folks,

We are running XVision (4.21), PC/TCP (2.05, I think) and are connecting to
our IBM RS/6000 running AIX 3.2.  If a user turns off his PC while several
XVision X-Window clients are active, we see paging usage increase dramatically
on the RS/6000.  In fact, the system seems to eventually halt due to corrupt
paging space.

Has anyone seen this before?

Please respond directly if possible, or else to this newsgroup.
Thanks.

+============================================+
|   Thomas J. Cozzolino - Rohm and Haas Co.   =
|   InterNet:    tcozz@rohmhaas.com            =
|                                               =
|     Internet Access for Everyone..             =
|         Isn't it time?                          =
|                                                  =
|   - Opinions expressed are my own, not            =
|     necessarily those of Rohm and Haas Company     =
+=====================================================+
Newsgroups: comp.windows.x
From: adrian@ora.COM (adrian)
Subject: Re: What happened to the X Color Management System?
Organization: The Internet
Date: Wed, 27 Jan 1993 16:17:33 GMT


>    In O'Reilly's "R5 Update", an extremely sketchy introduction
> is provided to the X Color Management System (Xcms) extension.

It is not an extension.  I don't know how you could have this
impression after reading the chapter on Xcms in that book.

> The chapter refers to a book that should have come out last
> spring that covers the extension in great detail.  However, the
> book has been dropped by O`Reilly (according to one of their
> customer service spokespeople).  

The book is on hold because it wasn't
up to snuff yet and none of our editors have time to work
on it at the moment.  We don't know when, if ever, it
will be completed.

> Does anyone know the current status of Xcms and device-
> independent color support?  Has Xcms been superceded by XIE or 
> some other extension?

Xcms is in R5 - it is part of Xlib.  It is now part of Core X.
The chapter (13 pages) on it in the R5 
update and in Vol 1 should be sufficient to understand and use it, 
they just do not go into all the colorimetry.  If they don't say
enough, please let me know what it is they don't say.

If you need to learn 
about the color spaces, go to a technical library and you should
be able to find out about them.

Also, the R5 update has manpages for most of the Xcms functions
(some obscure ones are omitted).  Vol 2 has them all.

*************************************************************
Adrian Nye (703) 243-8295   Editor, The X Resource
O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks
912 N. Daniel St. Apt 2      Arlington, VA 22201
Internet:   adrian@ora.com    	UUCP:   uunet!ora!adrian      
*************************************************************
From: jerry@sdd.comsat.com (Jerry Wernimont)
Newsgroups: comp.windows.x
Subject: HELP.. I want to move dialogs from one screen to another
Date: 21 Jan 93 16:07:27 GMT
Organization: SDD, COMSAT Labs, Clarksburg, MD



We are developing a system on a VAXstation 6000 that has 2 screens and
I am trying to move dialogs (windows) from one screen to another.  I have
been successful when I destroy all of the widgets and rebuild the 
dialog on the second screen, but I would like to use the XReparentWindow
to avoid all of the logic (and potential problems) with destroying all
of the widgets.  The code I have tried found the window whose parent
was the root window (using XQueryTree).  Once I found that window,
I got the root window of screen 1 and then called XReparentWindow.  The 
documentation claims that if the window is mapped, it will unmap it first
and then move it as the child of the new window ("root1").  I received
a BadMatch error when I tried this.  Is there any way to make this work?
Is the window manager getting in the way?

Help...

--
  Signed: Jerry Wernimont            Domain: jerry@sdd.comsat.com
  Phone : +1-301-428-5016            Fax   : +1-301-428-3186

  USPS  : COMSAT Labs, 22300 COMSAT Drive, Clarksburg, MD 20871
From: bam+@cs.cmu.edu (Brad Myers)
Newsgroups: comp.windows.x
Subject: Help with selection
Date: 22 Jan 93 16:02:22 GMT
Article-I.D.: cs.C19J7z.I2v.2
Organization: School of Computer Science, Carnegie Mellon

Can someone send me code that successfully handles the X/11 copy-paste
selection.  So far, we have just been setting the x cut buffer using 
       (setf (xlib:cut-buffer display) str)
(in Lisp) but this isn't good enough when some other application
(like xterm) has the selection "grabbed" (reverse video).  If no-one owns
the selection, then this works fine, actually.  No one in the
Lisp community seems to have this problem solved, so I am asking a wider
audience.  I can't figure out what I need to do from the ICCCM, but maybe
I can figure it out from a working C program.  If you have (hopefully a
small piece of) code that sets the current selection, turning off the 
reverse video in other windows, could you please send it to me?

Also, is there any standard format for copying rich (formatted) text or
graphics?  For example, does anyone have code that will accept or 
place formatted text into the cut buffer for exchange with FrameMaker?

Thanks,

Brad A. Myers
School of Computer Science
Carnegie Mellon University
5000 Forbes Avenue
Pittsburgh, PA  15213-3891
(412) 268-5150
FAX: (412) 681-5739
bam@a.gp.cs.cmu.edu
From: J.K.Wight@newcastle.ac.uk (Jim Wight)
Newsgroups: comp.windows.x
Subject: Re: Strange Xt error with the SimpleMenu widget
Date: 22 Jan 93 08:22:57 GMT
Distribution: comp
Organization: University of Newcastle upon Tyne, UK, NE1 7RU

thoth@beach.cis.ufl.edu (Robert Forsman) writes:
>  I was trying to pop up an Athena SimpleMenu without using the Xt
>action routine XtMenuPopup.  The menu would appear, but no entries
>would hilight.  After much pulling out of hair and experimentation
>(and a little use of the debugger on the Xt library) I have found out
>that I must insert a dummy call to XtMenuPopup if I want the default
>menu translations to work properly.

>  From looking at the code, XtMenuPopup merely finds the widget and
>performs the equivalent of an XtPopupSpringLoaded.  However when I
>perform nothing but an XtPopupSpringLoaded in my click-tactical()
>action routine, it still doesn't find the translations.

>  Is the XtMenuPopup something MORE than its action routine?

Here is a quote from the MenuButton documentation (4.6.3):

  "The MenuButton widget does not place a server grab on itself.  Instead,
  PopupMenu is registered as a grab action.  As a result, clients which popup
  menus without using XtMenuPopup or MenuPopup or PopupMenu in translations will
  fail to have a grab active.  They should make a call to XtRegisterGrabAction
  on the appropriate action in the application initialization routine, or use a
  different translation."

Jim
---
J.K.Wight@newcastle.ac.uk
Department of Computing Science, University of Newcastle,  Tel: +44 91 222 8238
Newcastle upon Tyne, NE1 7RU, United Kingdom.              Fax: +44 91 222 8232
From: bashar@csd4.csd.uwm.edu (Bashar Khairi Abouseido)
Newsgroups: comp.windows.x
Subject: RE: X screen dump
Date: 21 Jan 1993 21:03:46 GMT
Organization: Computing Services Division, University of Wisconsin - Milwaukee
Distribution: world
NNTP-Posting-Host: 129.89.7.4
Originator: bashar@csd4.csd.uwm.edu

=>From: lallemen@bellieni.loria.fr (Yannick Lallement)
=>Newsgroups: comp.windows.x
=>Subject: X screen dump
=>Organization: INRIA-Lorraine / CNRS - CRIN - Nancy - France
=>Lines: 13
=>
=>
=>I need to dump an entire X screen to a file. xwd does not do that. I
=>need something which can work on a X-terminal (the Sun "screendump" is
=>not ok.) If you have any idea...
=>
=>Yannick
=>--
=>----------------------------------------------------------------------
=>                         Emacs is a good opera-
=>   Yannick Lallement -   ting  system,  but  I   - lallemen@loria.fr
=>                         prefer Unix.
=>----------------------------------------------------------------------
=>
=>

Well, you can do this by using Xdump program. You can get this program 
from ftp.cs.uwm.edu site. This program has been developed by University
of Wisconsin Milwaukee Stoftware engineering students.


-- 
                     University Of Wisconsin Milwaukee
Computing Services Division        |  .'.           Computer Science
bashar@csd4.csd.uwm.edu          _/|__)))_)      bashar@miller.cs.uwm.edu
                                         '          Bashar Abouseido
Newsgroups: comp.windows.x
From: devuns@alsys.fr (Olivier Devuns)
Subject: patch program wanted
Organization: The Internet
Date: Fri, 22 Jan 1993 10:21:14 GMT

Hi xperts,
being in the situation where I have to apply a lot of patches, I realize
that the "patch" utility is not distributed on my machine. Could someone
tell me a ftp site and directory where one can find it ? Direct Email
answers please, I'm no more on xpert.

-----------------------------------------------------------------------
Olivier Devuns -- Ada Tools Development Engineer
ALSYS          -- 29 Ave. LR Duchesne, 78170 La Celle St Cloud - FRANCE

Email          : devuns@alsys.fr       Voice          : (1)30781727

                     "Views expressed are my own."
-----------------------------------------------------------------------
From: cq377@cleveland.Freenet.Edu (David C. Williss)
Newsgroups: comp.windows.x
Subject: wide characters (16-bit)
Date: 22 Jan 1993 04:43:29 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: cq377@cleveland.Freenet.Edu (David C. Williss)
NNTP-Posting-Host: hela.ins.cwru.edu


Question 1:  I need to set up an application to use a 16-bit (wide
character) font, such as Chinese.  I can set the fontList, but
how do I enter the text in vi?  For that mattter, how do you enter
characters above 127 in vi?  

Question 2:  When creating a text file where the text is 16-bit, is
it customary to write "wide characters" or "multi-byte"  POSIX has
wide character to/from multi-byte conversion functions.  My coworkers
argue that writing "wide character" (16 bits for everything) makes
it easier to process.  I argue that using "multi-byte" (8-bit where
you can, and using special codes to shift to/from 16 bit where you
need to) makes the files generic.  If it only contains characters in
the lower 127 (ASCII) or in the ISO Latin-1 range, it won't take up
any more room and can still be read/edited by programs that aren't
wide-character aware.  

Question 3:  Does vi handle either "multi-byte" or "wide-character"?
If so, which?  Actually, if it does, the "which" will answer my
question 2.


-- 
		-Dave Williss
---------------------------------------------------------------------------
Standards are great!  Everybody should have one of their own!
The opinions stated above are Mine!  All Mine!  You can't have them.
Newsgroups: comp.windows.x
From: stuart@fawlty.towers.oz.au (Stuart Walker)
Subject: Displaying JPEG images...
Organization: Tower Technology, Sydney
Date: Thu, 28 Jan 1993 06:18:52 GMT
Keywords: JPEG X image

Does anyone know of any software to display JPEG images in X ??   I'm looking
for either commercial or otherwise.

Thanks,

Stuart
-- 
_______________________________________________________________________________
Internet: stuart@fawlty.towers.oz.au			  Phone: +61 2 427 2999
UUCP:     uunet!fawlty.towers.oz.au!stuart		  Fax:   +61 2 427 7072
Snail:    Tower Technology
Newsgroups: comp.windows.x,comp.dcom.modems,comp.protocols.ppp,comp.protocols.tcp-ip
From: aiko@opium.cs.odu.edu (John K Hayes)
Subject: Need advice on x-windows connectivity via x.25
Organization: Old Dominion University, Norfolk, Va
Date: Thu, 28 Jan 1993 23:45:09 GMT


Hello, net experts.  A friend of mine needs help linking two Sun SPARC
stations via x.25 (remote WAN sortof, but no internet involvement) so he
can run x-windows through the connection.  I don't know a whole lot about
this stuff, so feel free to consider me a x-windows/x.25 idget and don't
work about insulting our combined intelligences....

Basically, he needs to know what to use at both ends to connect the
machines via a 9600 baud modem using x.25 protocol.  He says he can't
use tcp/ip over the modem, but I'm not sure why.  Any tips appreciated!

Thanks for your support.

John Hayes
aiko@cs.odu.edu
-- 
    ---{john hayes}  OLDOMINISITY; Norfolk, Virginia USA
                     internet: aiko@cs.odu.edu
Newsgroups: comp.windows.x
From: cmchan@dcs.warwick.ac.uk (C M Chan)
Subject: How to create a Pop-up window in XVIEW
Keywords:  Pop-up frame, canvas
Organization: Department of Computer Science, Warwick University, England
Date: Sat, 23 Jan 1993 22:49:32 GMT


Hi,

I am a novice user of XVIEW Toolkit. Can somebody out there please point me
out explicitly the way to create a Pop-up window in which an application can
display images and handles input with the XVIEW toolkit?

I have developed a simple program to create a Pop-up frame and its canvas
child in which a line will be drawn. However, I can't get what I want.

By the way, how can I install a new colormap for the Pop-up window?

Any pointer will be greatly appreciated.   Thanks in advance.


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


#include <X11/Xlib.h>
#include <xview/xview.h>
#include <xview/canvas.h>
#include <xview/xv_xrect.h>
#include <xview/panel.h>


Frame frame;     /* top level application base-frame */
Frame subframe;  /* subframe (FRAME_CMD) is a child of frame */

void canvas_repaint_proc(Canvas, Xv_Window, Display*, Window, Xv_xrectlist*);

main(int argc, char **argv)
{
    xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);

    /* Create base frame */
    frame = (Frame)xv_create(NULL, FRAME,
        FRAME_LABEL, argv[0],
        NULL);

    /* Create the command frame -- not displayed until XV_SHOW is set */
    subframe = (Frame)xv_create(frame, FRAME_CMD,
        FRAME_LABEL,         "Popup",
        NULL);

    (void) xv_create(subframe, CANVAS,
        CANVAS_REPAINT_PROC,    canvas_repaint_proc,
        CANVAS_X_PAINT_WINDOW,  TRUE,
        NULL);

    xv_set(subframe, XV_SHOW, TRUE, NULL);

    xv_main_loop(frame);
}

void
canvas_repaint_proc(Canvas canvas, Xv_Window paint_window,
                    Display *dpy,  Window xwin, Xv_xrectlist *xrects)
{
    GC gc;
    int width, height;

    gc = DefaultGC(dpy, DefaultScreen(dpy));
    width = (int)xv_get(paint_window, XV_WIDTH);
    height = (int)xv_get(paint_window, XV_HEIGHT);

    XDrawLine(dpy, xwin, gc, 0, 0, width, height);
}


-- 
C M CHAN         cmchan@dcs.warwick.ac.uk
From: jae@meaddata.com (Jeff Engler)
Newsgroups: comp.windows.x
Subject: events for client fps
Date: 27 Jan 1993 15:14:02 GMT
Organization: Mead Data Central, Dayton OH
NNTP-Posting-Host: ape.meaddata.com
X-Newsreader: Tin 1.1 PL5

I'm trying to remember a trick I saw I believe in an application called xwall.
basically I have a callback wich creates a child that talks to the parent via
a pipe.  I seem to remember a way to register a file pointer with X so an event
is generated when there is something to read on the pipe (file pointer).  I 
think I need to use XSelectInput.  Can anyone out ther give me some further
direction.

Also if anyone could email me xwall I would appreciate it.

Thanks in advance.

Jeff Engler
jae@meaddata.com
Newsgroups: comp.windows.x
From: bryan@alex.com (Bryan Boreham)
Return-Path: <news>
Subject: Re: Contact information for Visionware XVision
Organization: Alex Technologies Ltd, London, England
Apparently-To: mail2news@demon.co.uk
Date: Tue, 26 Jan 1993 11:21:27 +0000

Email to vware@visionware.co.uk or call (44) 532 788858 in the UK.
The have a US office, but I don't seem to have the number.

Bryan.
Newsgroups: comp.windows.x
From: craig@ucsc (Craig Schiavone)
Newsgroups: comp.windows.x
Subject: Q: How do I create a window with an 8-bit visual?
Keywords: visual
Date: 23 Jan 93 01:35:29 GMT
Reply-To: craig@bering.ucsc.edu
Distribution: ca
Organization: Sun Microsystems, Inc.
NNTP-Posting-Host: bering.ucsc.edu

I am having trouble with creating a window with an 8-bit Pseudocolor visual
on a Sun Sparcstation.  I am getting the visual w/XMatchVisualInfo, and
creating an appropriate colormap with no problem, but running the program
gives me this error:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  4
  Current serial number in output stream:  5

I am running under sunOS 4.1.2 and OpenWindows 3.0, using the open-look
window manager (olwm).  The default visual of the screen in a 24-bit
TrueColor visual.  Here's the code:

        stat = XMatchVisualInfo(display, DefaultScreen(display), 8, PseudoColor, &vInfo);
        pseudo8Vis = vInfo.visual;
        pseudoCmap = XCreateColormap(display, rootWin, pseudo8Vis, AllocNone);
        if (pseudoCmap == DefaultColormap(display, screen_num)) {
                printf("got default colormap\n");
        }
 
        /* create opaque window */
        if (stat && pseudoCmap && (pseudoCmap != DefaultColormap(display, screen_num))) {
            winAttrs.colormap = pseudoCmap;
            win = XCreateWindow(display, rootWin, x, y, width, height,
                border_width, 8, InputOutput, pseudo8Vis, (unsigned long) CWColormap,
                &winAttrs);
        } else {
            fprintf(stderr, "Couldn't get visual (%d) or cmap (%d).\n",
                stat, pseudoCmap);
            exit(0);
        }

What am I doing wrong?

Any help with this program would be greatly appreciated.

-Craig
From: craig@bering.ucsc.edu (Craig Schiavone)
Newsgroups: comp.windows.x
Subject: Re: 24 bit Colour in X.
Date: 25 Jan 93 19:28:52 GMT
Reply-To: craig@ucsc
Organization: Sun Microsystems, Inc.
NNTP-Posting-Host: bering.ucsc.edu

In article 16287@cs.nott.ac.uk, nlc@trellis.cs.nott.ac.uk (Neil L Cook) writes:
>I am looking for advice and or examples of code in how to program
>24-bit colour in Xlib. I have a GS card for the SPARC10 which is
>capable of theoretically displaying all 16.7 million at once. I have
>read the O'Reilly Xlib Programmers guide, but it is extremely sketchy
>about using all the colours at once, going on about using a colourmap
>for each primary. The Xlib manual talks about plane masks which u
>apply to the index into the colourmap.
>
>Specifically, I am looking for the arguments to XAllocColourPlanes,
>which seems to die if I give it 256 colours and 8 bit rgb planes.
>(Only accepts 1 colour and 8 bit rgb).
>
>Also, once I have got XAllocColourPlanes to work, what do I do with
>these plane masks I get back? An example using e.g XPutPixel would be
>nice.
>
>Neil.

To use the 24 bits of color, you need to use a specific Visual for
the window that you will be using.  O'Reilly explains these in chapter
Seven.  What you'll need to do is get a pointer to the correct 24-bit
visual, get a colormap structure to match it, and then open up a window
with that visual, colormap, and a depth of 24 (I'm assuming it will be
24. It might be different for your system).  This is how I'm doing it
with the Xlib and Xt calls:

    stat = XMatchVisualInfo(disp, DefaultScreen(disp), 24, TrueColor, &vInfo);
    *trueColor24 = vInfo.visual;
    trueColor_cmap = XCreateColormap(disp, xmRootWindow, trueColor24, AllocNone);
	.
	.
	.
    movieWindow.topWindow = XtVaAppCreateShell("moviewindow", "XMex",
        topLevelShellWidgetClass, disp, XtNtitle, "Movie Window",
        XtNvisual, trueColor24, XtNdepth, 24, XtNcolormap, trueColor_cmap,
        NULL);

You don't need to use a colormap for each primary.  That's what a DirectColor
visual can do, but chances are you don't need it.  For a 24-bit TrueColor visual,
you will likely derive pixel values something like this:

	unsigned char	blue, green, red;
	unsigned int	pixel;
	   .
	   .
	pixel = (blue << 16) || (green << 8) || red;

...or in a similar way.  Different servers work will have different ways
of computing the pixel value.  The O'Reilley manual is more specific on
that point.

Opening a window with a specific Visual is a problem I haven't worked
out satisfactorily for pure Xlib stuff, though.  Hope this helps,

-Craig
Newsgroups: comp.windows.x
From: s127@brems.ii.uib.no (Torgeir Veimo)
Subject: C++ widgets?
Organization: University of Bergen, Norway
Date: Thu, 21 Jan 93 15:21:46 GMT

Do there exist some non-commercial c++ widget sets available? Will
the motif widgets eventually get distributed in both c and c++
versions? (Motif preferred since we're using this in our
comp.graphics course.)

Post or mail would be appreciated.

-- 
Torgeir Veimo

Studying at the University of Bergen

"...I'm gona wave my freak flag high!" (Jimi Hendrix)

"...and it would be okay on any other day!" (The Police)

Xref: sparky comp.windows.x:21602 comp.windows.x.intrinsics:802