azbycxdw909 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Wide input lines don't line wrap; leave visible garbage #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open gargoyle on just about any game
2. Type a very long line of input that is too wide to fit. Observe that the
text runs off the edge of the window and cannot be seen.
3. Press enter. Observe that the text still runs off the edge.
4. Enter a few short commands. Observe that the long line is corrupting the
display on each command.
5. Resize the window.  Observe that the long line is properly wrapped and
the graphic corruption is repaired.

What is the expected output? What do you see instead?

Expected behavior: When entering a long line, either it word wraps, or
scrolls horizontally.  When I press enter, the line is word wrapped as with
the output text.  No graphic corruption.

Observed behavior is described above in the steps to reproduce.

What version of the product are you using? On what operating system?

Please provide any additional information below.

An example of what I'm seeing is attached.  The game is "Dracula's
Underground Crypt"
(http://www.ifarchive.org/if-archive/games/competition2008/zcode/draculas/Dracul
as%20Underground%20Crypt.zblorb
), which I just happened to have sitting around.  The command is nonsense
in that game, but is valid and useful input to "Piracy 2.0"
(http://www.ifarchive.org/if-archive/games/competition2008/zcode/piracy/Piracy_2
.z5).

While I did observe this while playing Piracy 2.0, I mostly noticed it
because I had taken to writing notes to myself directly into the input,
using the script to store my notes.  My notes are frequently long, so I hit
this option.

Workaround:

Resize the window a bit.

Original issue reported on code.google.com by Alan.A.D...@gmail.com on 30 Oct 2008 at 3:43

Attachments:

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
gargoyle-2008-10-31-sources_rc1.zip
Ubuntu 8.04

(Sorry for adding it late)

Original comment by Alan.A.D...@gmail.com on 30 Oct 2008 at 3:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 7 Nov 2008 at 11:55

GoogleCodeExporter commented 8 years ago
Fix likely goes in the win_textbuffer_putchar_uni function, in the section to
calculate line width.

Original comment by bcressey@gmail.com on 20 Nov 2008 at 1:16

GoogleCodeExporter commented 8 years ago
Added a fix for the display corruption in the scroll bar area. Input line 
wrapping
has been added as an enhancement request, and will be explored in the next 
milestone.

Original comment by bcressey@gmail.com on 21 Nov 2008 at 10:45

GoogleCodeExporter commented 8 years ago
Confirmed fixed in gargoyle-2008-11-22-rc4.  Thanks!

Original comment by Alan.A.D...@gmail.com on 1 Dec 2008 at 3:12