-
Notifications
You must be signed in to change notification settings - Fork 0
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
Section Titles #1
Comments
It works fine for me. Both with no config file, and modernity.conf. Could you provide:
|
Man/Apropos 2.9.4 LANG="en_US.UTF-8" |
I tried it with your manpage file, and qterminal 1.4. It works as expected, in Linux. I have a suspicion: Qman does not parse manual pages by itself. Rather, it uses the rendered output of GNU man, parsing the escape codes to figure out whether a portion of the text is bold, underlined, etc. For example, GNU man typically adds My suspicion is that MacOS man doesn't produce the exact same output as GNU man does, and this breaks the whole process. Is it possible to install GNU man on MacOS? If so, you can tell Qman to use it by adding the following to your config file:
|
I can certainly do that. I do want to clarify that I am running this on a debian machine and connecting via ssh on a macbook. I did try to remote in with another debian machine and reproduced the same results. The dependencies that I could find for building looked old could that be an issue?
…On Sun, Mar 10, 2024 at 12:16 PM, Pantelis Panayiotou ***@***.***(mailto:On Sun, Mar 10, 2024 at 12:16 PM, Pantelis Panayiotou <<a href=)> wrote:
I tried it with your manpage file, and qterminal 1.4. It works as expected, in Linux.
I have a suspicion:
Qman does not parse manual pages by itself. Rather, it uses the rendered output of GNU man, parsing the escape codes to figure out whether a portion of the text is bold, underlined, etc.
For example, GNU man typically adds \e[1m before a heading to make the text bold, and \e[0m after it to restore it to normal. The function man() in program.c sees this and marks it in a bitmap (specifically, member bold of structure line_t, defined in program.h). This bitmap is then used in tui.c to render the heading text as bold using libcursesw.
My suspicion is that MacOS man doesn't produce the exact same output as GNU man does, and this breaks the whole process.
Is it possible to install GNU man on MacOS? If so, you can tell Qman to use it by adding the following to your config file:
[misc]
man_path=/path/to/GNU/man
apropos_path=/path/to/GNU/apropos
whatis_path=/path/to/GNU/whatis
—
Reply to this email directly, [view it on GitHub](#1 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/A4VCZZF7YPAPASCU57GOGPDYXSBPNAVCNFSM6AAAAABEORKDFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGI4DGMBRGA).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sorry, I didn't realise you were on Linux. Nevertheless, it looks like my suspicion was correct. Look at the output of
Now, look at the same output in Ubuntu server (which I suppose is very close to Debian):
Totally different. And it looks like it matches your screenshot. |
OK, I found something relevant here. Can you tell me if this works?
|
Yes, that works thank you :) |
I modified program.c so that |
Might be a configuration issue. Any ideas?
The text was updated successfully, but these errors were encountered: