-
Notifications
You must be signed in to change notification settings - Fork 201
Printer support in far editor #3168
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
base: master
Are you sure you want to change the base?
Conversation
…ded workaround for main threads
|
Basically, the code works as follows (wxWidgets backend active):
For terminal backend, as there is no UI available, the file is placed "as is", as text file, and then send to printer using lp command. If the printer configured, the file (or selected fragment) is being sent to the default printer (if configured). I've checked this against real hardware printer. The HTML generation was not moved out to the backend on purpose: the same HTML can be used to support clipboard (with additional flavor) directly in editor. |
|
Looks like it is ready to merge |




Added printer support in far editor through wxWidgets printing (via HTML/RTF) for UI, and simple lp-based for console. Printer caps are exposed by corresponding backend.
Using editor colors, the code computes "close" colors of the text to the white paper using RGB-LAB color space conversion. The character colors are being used from the editor directly, so if colorer didn't finished the colorization printer support will not see it too.