Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word wrap #18

Closed
unxed opened this issue Oct 13, 2020 · 3 comments
Closed

Word wrap #18

unxed opened this issue Oct 13, 2020 · 3 comments

Comments

@unxed
Copy link
Contributor

unxed commented Oct 13, 2020

Unfortunately, native Turbo Vision does not have Word Wrap implemented in editor control. There is a solution, but its license forbids modifying source code. The question is: can sill be used somehow with this Turbo Vision revival approach?

http://cd.textfiles.com/ems/emspro17/disk1/CUTIL/TVWRDWRP.ZIP

Thanks!

@magiblot
Copy link
Owner

magiblot commented Oct 13, 2020

Hi unxed!

Using Primatech's code for this public repository would go against its use terms, although it may be possible to renegotiatie them with the authors. But their changes are not likely to apply cleanly to the current source because they are based on the older Turbo Vision 1.0 and because other extensions were already added to TEditor, such as UTF-8 and LF support.

In fact, TEditor is far from being what we would call today a trustworthy editor, for several reasons:

  • The undo buffer is limited to one action, and it gets cleared when moving the cursor.
  • No redo buffer.
  • Scroll width limited to maxLineLength = 256
  • No word wrap, as you exposed.
  • No syntax highlighting.

Some mitigations have been added, such as improved usability of scrollbars and middle click drag. But the issues are still there.

All of these can be fixed whether by using Primatech's code or not. But either way, fixing them properly will require redesigning TEditor's internal architecture so as not to make a mess. Personally, I do not rely on TEditor as much as to need these features and I am not willing to waste time implementing them.

So, in short, if you just want to play with a Turbo Vision text editor, you may take a look at https://github.com/magiblot/turbo, which I built upon Scintilla to avoid reinventing the wheel. Otherwise, I'm afraid I cannot help you at the moment.

Cheers!

@unxed
Copy link
Contributor Author

unxed commented Oct 13, 2020

Hi magiblot! https://github.com/magiblot/turbo is EXACTLY the thing I was searching for.

Maybe it worth mentioning Turbo in Turbo Vision fork project readme?

Thank you for your amazing work!

@unxed unxed closed this as completed Oct 13, 2020
@magiblot
Copy link
Owner

magiblot commented Oct 13, 2020

Turbo is already mentioned in the introduction:

However, between July and August 2020 I found the way to integrate full-fledged Unicode support into the existing arquitecture, wrote the Turbo text editor and also made the new features available on Windows.

I know it's a bit hidden, but I do not plan to implement new features in Turbo anytime soon and I really don't want to give people false expectations. So I just left it there, so that observant readers can find it :)

You are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants