[comp.windows.x] xterm

jon@INTREPID.S1.GOV.UUCP (03/14/87)

Xterm incorrectly deals with return values from XParseGeometry when
figuring out where to place the icon (if you specified an icon
geometry spec on the command line and gave a negative x or y offset).
It assumes that offset values returned by XParseGeometry are absolute
values, but in truth they can negative.

		-- Jon

The following trival change to the IconGeometry procedure in misc.c
fixes this.  From:

		if((i & XValue) && (i & XNegative))
			*ix = DisplayWidth() - *ix - screen->iconVwin.width - 2 *
			 screen->borderwidth;
		if((i & YValue) && (i & YNegative))
			*iy = DisplayHeight() - *iy - screen->iconVwin.height - 2 *
			 screen->borderwidth;

To:

		if((i & XValue) && (i & XNegative))
			*ix = DisplayWidth() + *ix - screen->iconVwin.width - 2 *
			 screen->borderwidth;
		if((i & YValue) && (i & YNegative))
			*iy = DisplayHeight() + *iy - screen->iconVwin.height - 2 *
			 screen->borderwidth;

mcdonald%loki.edsg@HAC2ARPA.HAC.COM (louis mcdonald) (09/30/88)

Has anyone heard of a version of Xterm that when in icon format
will change its appearance if something appears in that window.
This would be similar in function to the Vaxstation when it
has a window that is in icon format. The icon will put
``New Data'' in the terminal screen on the icon.

Louis McDonald

gvb@tnoibbc.UUCP (Gerlach van Beinum) (02/14/89)

	Recently we received Version 3 of the X Window System.
	There was an annoying bug in xterm. The escape sequence
	to open a line (from vi) was not handled as it should
	be. Some debugging led to a (hacker's?) solution :

	In the routine CursorRestore someone subtracts
	screen->top_marg from the current row, setting it to zero
	most of the time. They didn't do this in Version 2.
	This hack will probably have some strange effect's on 
	other programs, but vi works as it should!

	The following is the code of routine CursorRestore in
	file clients/xterm/cursor.c :

CursorRestore(term, sc)
register XtermWidget term;
register SavedCursor *sc;
{
	register TScreen *screen = &term->screen;

	Bcopy(sc->gsets, screen->gsets, sizeof(screen->gsets));
	screen->curgl = sc->curgl;
	screen->curgr = sc->curgr;
	term->flags &= ~(BOLD|INVERSE|UNDERLINE|ORIGIN);
	term->flags |= sc->flags & (BOLD|INVERSE|UNDERLINE|ORIGIN);
/*	CursorSet(screen, sc->row - screen->top_marg, sc->col, term->flags); */
	CursorSet(screen, sc->row, sc->col, term->flags);
}

-- 
------------------------------------------------------------------
 Gerlach van Beinum    USENET: gvb@tnoibbc  PHONE: +31 15 606447
------------------------------------------------------------------

daves@oswego.Oswego.EDU (Dave Sternlicht) (05/08/89)

Can somebody please tell me the easiest way to make xterm generate
ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D ie the sun termcap entries for arrow
keys?  This is for an application that heavily uses termcap/curses
and pulls up menus with curses when the left arrow key is typed on
the sun keyboard.
		thankyou for your help in advance:
				dave sternlicht
				david@cmx.npac.syr.edu
				uunet!nmri!dave

macq@lll-lcc.UUCP (Donald H. Macqueen) (10/27/89)

use a function key to switch from VT102 to TEK emulation (and another
key to switch back), rather than have to go through the xterm
menus each time.  I am using TWM (.twmrc) and a Sun 3/50.  Can
anybody tell me how to do this?  I would appreciate a direct reply to
macq@miguel.llnl.gov, as I am not able to read network news on a regular
basis.
  Thanks,  Don MacQueen

carey@m.cs.uiuc.edu (John Carey) (11/21/90)

I have the setuid bit on xterm set.  When I do a ps, it shows the
owner of xterm to be root, instead of the person who started the
xterm.  Is there a way to fix this?
--
John Carey
University of Illinois
Dept. of Computer Science
carey@a.cs.uiuc.edu
{uu-net,pur-ee,convex,...}!uiucdcs!carey

pilgrim@daimi.aau.dk (Jakob G}rdsted) (02/05/91)

Hello !

I have a litle question.

If I open a Xterm in Xwindows, like this 

    xterm -bg green -fg red -sb

is it then possible to change the colors and
remove the scrollbar once the xterm (shell)
is on the screen.

I do not want to use the options in the menus.

Thanks in advance.   

                   Pilgrim.

abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi) (03/26/91)

Hi,

	I want to start an xterm that comes up with a written text on it.
I couldn't use -e option with xterm. Thanks for your suggestions?