Title: Support hyperlinks encoded as terminal escape sequences · Issue #39 · astanin/python-tabulate · GitHub
Open Graph Title: Support hyperlinks encoded as terminal escape sequences · Issue #39 · astanin/python-tabulate
X Title: Support hyperlinks encoded as terminal escape sequences · Issue #39 · astanin/python-tabulate
Description: Some terminals support clickable text via escape sequences. If we use the escape sequence >>> import tabulate >>> >>> def encode_url(text: str, target:str): ... return f"\u001b]8;;{target}\u001b\\{text}\u001b]8;;\u001b\\" ... >>> table =...
Open Graph Description: Some terminals support clickable text via escape sequences. If we use the escape sequence >>> import tabulate >>> >>> def encode_url(text: str, target:str): ... return f"\u001b]8;;{target}\u001b\\{...
X Description: Some terminals support clickable text via escape sequences. If we use the escape sequence >>> import tabulate >>> >>> def encode_url(text: str, target:str): ... return f&...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/39
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support hyperlinks encoded as terminal escape sequences","articleBody":"Some terminals support [clickable text](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) via escape sequences. If we use the escape sequence\r\n\r\n```python\r\n>>> import tabulate\r\n>>>\r\n>>> def encode_url(text: str, target:str):\r\n... return f\"\\u001b]8;;{target}\\u001b\\\\{text}\\u001b]8;;\\u001b\\\\\"\r\n... \r\n>>> table = tabulate.tabulate([[encode_url(\"test\", \"http://example.org\")]], headers=[\"test\"], tablefmt=\"grid\")\r\n>>> print(table)\r\n+--------+\r\n| test |\r\n+========+\r\n| test |\r\n+--------+\r\n```\r\n\r\ntabulate does not calculate the width correctly.","author":{"url":"https://github.com/michael-plutoflume","@type":"Person","name":"michael-plutoflume"},"datePublished":"2020-03-03T17:56:08Z","url":"https://github.com/astanin/python-tabulate/issues/39"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:90e89fd4-c955-d195-45a3-6e5abc28e790 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E85A:15F152:938F22:C9FC1B:6AFF3C78 |
| html-safe-nonce | e880fa179135f678c0161c9e2952b38eb7a82d198e6ba8b17d5dfd5048118cf2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODVBOjE1RjE1Mjo5MzhGMjI6QzlGQzFCOjZBRkYzQzc4IiwidmlzaXRvcl9pZCI6IjUwMTA2NTY3OTM3NTIxOTAwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 460f64be9517a12c0c8f53d100991e58701d3609ed8c498e1c729fb6f270b671 |
| hovercard-subject-tag | issue:574840877 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/astanin/python-tabulate/39/issue_layout |
| twitter:image | https://opengraph.githubassets.com/652ab28d73f2d5b7634564ac9cb4a01b85bb16684125a93f9aebff3b66ab23c2/astanin/python-tabulate/issues/39 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/652ab28d73f2d5b7634564ac9cb4a01b85bb16684125a93f9aebff3b66ab23c2/astanin/python-tabulate/issues/39 |
| og:image:alt | Some terminals support clickable text via escape sequences. If we use the escape sequence >>> import tabulate >>> >>> def encode_url(text: str, target:str): ... return f"\u001b]8;;{target}\u001b\\{... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michael-plutoflume |
| hostname | github.com |
| expected-hostname | github.com |
| None | 07f40d184b74ca701a2005d4a164bf7038be26fc145c2623336a91fe477cc584 |
| turbo-cache-control | no-preview |
| go-import | github.com/astanin/python-tabulate git https://github.com/astanin/python-tabulate.git |
| octolytics-dimension-user_id | 71802 |
| octolytics-dimension-user_login | astanin |
| octolytics-dimension-repository_id | 205875548 |
| octolytics-dimension-repository_nwo | astanin/python-tabulate |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205875548 |
| octolytics-dimension-repository_network_root_nwo | astanin/python-tabulate |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8e428a801c2dccf4d1f411040a0e0b7fab7d4061 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width