From xemacs-m  Sat May 10 04:30:51 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA17206
	for <xemacs-beta@xemacs.org>; Sat, 10 May 1997 04:30:50 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id LAA17207; Sat, 10 May 1997 11:30:47 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Cc: wing@666.com
Subject: Multiple TTY frames
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 10 May 1997 11:30:46 +0200
Message-ID: <kig3erveks9.fsf@jagor.srce.hr>
Lines: 27

I'd like to implement the multiple frames on a TTY.  It looks fairly
simple to me.  Here's the idea.

Each TTY device has its frame list.  The first frame in the list is
the visible one (i.e. it will have its f->visible set).

When you raise a frame X, you make the one that was on top of the
device frame-list invisible, move X to the top of the list, and make
it visible.

When you lower a frame X, you are moving it to the bottom (end) of the
device frame list, and making it invisible, and then make the one that
remains at the top visible.

Both schemes insure that if there is only one frame in the list, that
it remains visible.  When you create a TTY frame, it should be raised
automatically.  `C-x 5 o' would simply rotate the frame list.

Is this doable like I imagined?  Is there anything else I didn't think
of?  Some redisplay tweaks to be done?  I'll need some feedback on
this, as I'm not yet familiar with XEmacs C source (other than the
occasional tinkering).

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Good pings come in small packets.

