From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Fco.J.Ballesteros MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20011011080833.A8E9019A41@mail.cse.psu.edu> Subject: [9fans] frames & tabs Date: Thu, 11 Oct 2001 10:08:33 +0200 Topicbox-Message-UUID: 05553d22-eaca-11e9-9e20-41e7f4b1d025 Since tabs are meant to tabulate and I think that means keeping clear columns, I was thinking about a change for libframe to handle tabs like follows: 1. Keep an array of tab positions per frame, each one pointing to the x where the respective column should start. 2. Adjust each tab position as text gets inserted. So that if you insert: a\tb\tc\n You get a b c And when later you insert: ab\tcde\n You get a b c ab cde The first bad thing is that text before the insertion gets `changed' by inserting tabs in the following lines. The second bad thing is that tabs on the left of the line (eg. source code) would still be handled by inserting N spaces. Does it all make sense?