UTF-8 support for html form textarea. Changed displaying of textarea.
commitc0d20d8420ae2b68be7c13c2f18d78e7f60750e5
authorPavol Babincak <scroolik@gmail.com>
Sat, 6 May 2006 20:36:48 +0000 (6 22:36 +0200)
committerPavol Babincak <xbabinc@nymfe33.fi.muni.cz>
Sat, 6 May 2006 22:51:26 +0000 (7 00:51 +0200)
tree7f8c893599a7d715b3b5626d72f1e0dcb08e5d05
parentaedc5459efc67c140fa377194f97906a1ce7ab62
UTF-8 support for html form textarea. Changed displaying of textarea.

Including double-width glyph support.

Note: textarea is now drawn with blank collumn at end of lines. It seems
that this is more intuitive for users. It behaves similar as textareas in
graphical interfaces. I hope it will hold your interest.

+----+         +----+         +----+
|aaA | [right] |aaa_| [right] |aaa |
|aaa |         |aaa |         |Aaa |
|bb  |         |bb  |         |bb  |
+----+         +----+         +----+
+----+         +----+         +----+
|Aaa |  [end]  |aaa_|   [c]   |aaa |
|aaa |         |aaa |         |Caa |
|bb  |         |bb  |         |abb |
+----+         +----+         +----+
A, _, C - cursor positions.
[right] - right arrow
[end]   - ACT_END (End button)
[c]     - Letter c.

Now this code:
<textarea rows="3" cols="3">aaaaaabb</textarea>
represents textarea with 3x3 positions for chars.

Before this texteare behaved some kind of weirdly. That code above was
rendered like this:
+----+
|aaaa|
|aabb|
|_   |
+----+
src/viewer/text/form.c
src/viewer/text/textarea.c
src/viewer/text/textarea.h