You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -80,19 +80,21 @@ More examples can be found in the [`examples/`](examples/) directory.
80
80
81
81
## 🔮 Features
82
82
83
-
-**`termlink.Link(text, url)`**
83
+
-**`termlink.Link(text, url, [shouldForce])`**
84
84
85
85
- Creates a regular, clickable link in the terminal
86
86
- For unsupported terminals, the link will be printed in parentheses after the text: `Example Link (https://example.com)`.
87
+
- The `shouldForce` is an optional boolean parameter which allows you to force the above unsupported terminal hyperlinks format `text (url)` to be printed, even in supported terminals
- Creates a clickable link in the terminal with custom color formatting
91
92
- Examples of color options include:
92
93
- Foreground only: `green`, `red`, `blue`, etc.
93
94
- Background only: `bgGreen`, `bgRed`, `bgBlue`, etc.
94
95
- Foreground and background: `green bgRed`, `bgBlue red`, etc.
95
96
- With formatting: `green bold`, `red bgGreen italic`, `italic blue bgGreen`, etc.
97
+
- The `shouldForce` is an optional boolean parameter which allows you to force the above unsupported terminal hyperlinks format `text (url)` to be printed, even in supported terminals
0 commit comments