Skip to content

tool: support bold headers in Windows#12321

Closed
jay wants to merge 2 commits into
curl:masterfrom
jay:win32_bold_headers
Closed

tool: support bold headers in Windows#12321
jay wants to merge 2 commits into
curl:masterfrom
jay:win32_bold_headers

Conversation

@jay

@jay jay commented Nov 14, 2023

Copy link
Copy Markdown
Member
  • If virtual terminal processing is enabled in Windows then use ANSI escape codes Esc[1m and Esc[22m to turn bold on and off.

Suggested-by: Gisle Vanem

Ref: #11770

Closes #xxxx


prompt

/cc @gvanem @dfandrich

- If virtual terminal processing is enabled in Windows then use ANSI
  escape codes Esc[1m and Esc[22m to turn bold on and off.

Suggested-by: Gisle Vanem

Ref: curl#11770

Closes #xxxx
Comment thread src/tool_doswin.c Outdated
@bagder bagder added the Windows Windows-specific label Nov 14, 2023
@jay jay closed this in 8261800 Nov 16, 2023
@jay jay deleted the win32_bold_headers branch November 16, 2023 09:00
@gvanem

gvanem commented Nov 16, 2023

Copy link
Copy Markdown
Contributor

What could be done for the link-text on Windows? AFAIK, it's possible with underlined text under VTS,
but I'm not sure that's the same as for Unix. How does a LINK <url> look and work under Unix? Click on it and it opens the
default browser?

@bagder

bagder commented Nov 16, 2023

Copy link
Copy Markdown
Member

How does a LINK look and work under Unix? Click on it and it opens the default browser?

Click on it and the "default app" for that link type opens it, yes. Presumably typically a browser.

@gvanem

gvanem commented Nov 16, 2023

Copy link
Copy Markdown
Contributor

Click on it and the "default app" for that link type opens it, yes.

That would be hard to accomplish on Windows I guess.

@DHowett

DHowett commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

That would be hard to accomplish on Windows I guess.

With Windows Terminal, you can Ctrl-click URLs to open them in your default browser. 🙂

@bagder

bagder commented Dec 6, 2023

Copy link
Copy Markdown
Member

With Windows Terminal, you can Ctrl-click URLs to open them in your default browser. 🙂

Yes, but with some of the other-systems terminals, we can also "mark up" relative URLs used in the headers and spell out the full URL for when someone clicks on them. Ie use more meta-data than what is visible on screen.

@DHowett

DHowett commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

If you end up using OSC 8 (the standard for hyperlinks in terminals) that will work on Windows as well!

@bagder

bagder commented Dec 6, 2023

Copy link
Copy Markdown
Member

Aha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmdline tool Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

4 participants