[comp.sys.next] Mucking about with DPS

scott@sage.uchicago.edu (Scott Deerwester) (03/17/90)

I've been doing some development on the GNU emacs front-end that John
Myers posted (thank you John, {who,wher}ever you are!).  The mods I've
made include:

Using the defaults database for:

- Window size
- Window position
- Font and font size

Fixing a few bugs:

- The cursor positioning was wrong, since it rounded positions to
  integers before it should have.
- Handling window resizing correctly (this cropped up when I tried to
  make it be something besides 80x24 when it starts up).

I'm stuck on two more things:

- The basic loop is: erase the cursor; do whatever; put the cursor
  back.  If I move the window, the cursor doesn't get erased
  correctly.  The (PostScript) code to erase the cursor is:

	defineps static show_cursor(int x, y, w, h)
	x y w h Xor compositerect
	endps

  This is called once at the end, and once at the beginning of the
  read loop.  It looks like it's rounding to a character position
  relative to the original screen position, but only when it *erases*
  the cursor.  When it puts up a new cursor, it works fine.

- The mouse cursor doesn't disappear when I type characters like it
  does for, say, Terminal or Shell.  How do I make that happen?

Other than that, I'm very happy with it!  Now if somebody will just
write a full screen terminal emulator that has cut and paste and a
scroll bar...
-------
Scott Deerwester		| Internet: scott@tira.uchicago.edu
Center for Information and	| Phone:    312-702-6948
   Language Studies		| 1100 E. 57th, CILS
University of Chicago		| Chicago, IL 60637
-------
Scott Deerwester		| Internet: scott@tira.uchicago.edu
Center for Information and	| Phone:    312-702-6948
   Language Studies		| 1100 E. 57th, CILS