Version 6 of Home, End and other formatting problems

Updated 2005-02-05 06:04:19

I encounter a serious problem on a TCL/TK application. When I click on "Home", the cursor goes to the beginning of the paragraph and not to the beginning of the line. The same with the "End" key. It goes to the end of the paragraph and not to the end of the line.

Finally, to top it all off, when I use the up or the down arrows, they don't move the cursor to the line above or below; they move it to the line where the paragraph starts or ends.

What causes this serious and very painful problem? What do I do to fix it? Thanks!

NEM: Wait for Tk 8.5 (or use an alpha release): TIP 155[L1 ] provides the functionality you need, AIUI. (BTW, it's not generally a good idea to use this wiki for questions, and less so to create a new page for a single question. news:comp.lang.tcl is a better place for such queries.)

I will. Thanks so much Neil. I went on your homepage and I was impressed at the diversity of projects you got involved in. True inventors (like you) touch a lot of everything before they come up with the one excellent idea that will revolutionize the world. Keep it up Doctor Madden! Well not quite Doctor yet; in a few months from now you will be able to use this title! When that happens, you'll be astonished at the people who will call you to come cure them... A doctor is still seen as many as the man with a stethoscope! :-)

MG Jan 27th 2005 - The page Move cursor by display line in a text widget also shows a pure-Tcl way to fix this in 8.4, which may be better for now, as many people aren't using 8.5 yet. One thing this doesn't fix, however, is the Control-Up / Control-Down bindings (for going to the beginning of the previous/next paragraph).

Thanks MG. It seems that the program does not seem to see an end of line and it can only see this when a return has been made. It thus treats a series of lines as one single line!

Please don't tell me that this sort of problem can only be solved in a latter version of TCL! This is such a basic feature that I fail to see how this problem could not have been addressed very early on! Tell me I am mistaken!