Skip to content
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

a href doesn't work in Windows 10 console and under wsl #173

Closed
2rkmen opened this issue Aug 18, 2023 · 6 comments
Closed

a href doesn't work in Windows 10 console and under wsl #173

2rkmen opened this issue Aug 18, 2023 · 6 comments

Comments

@2rkmen
Copy link

2rkmen commented Aug 18, 2023

a href doesn't work in Windows 10 console and under wsl.
Is it working on a mac or Linux?
Is there some solution to avoid this problem?

@xiCO2k
Copy link
Collaborator

xiCO2k commented Aug 20, 2023

can you share a printscreen? and the HTML provided?

@2rkmen
Copy link
Author

2rkmen commented Aug 21, 2023

i use it in laravel zero

    public function handle()
    {
        render(<<<'HTML'
            <p>
                This is a CLI app built with Termwind. <a href="/">Click here to open</a>
            </p>
        HTML);
    }

image

@xiCO2k
Copy link
Collaborator

xiCO2k commented Aug 21, 2023

It maybe a problem with symfony/console, can you try this, and let me know if it works?

use Symfony\Component\Console\Output\ConsoleOutput;

(new ConsoleOutput())->write('<href=http://google.pt>Test</>');

@2rkmen
Copy link
Author

2rkmen commented Aug 21, 2023

no. same situation. Links are not clickable on windows command line and wsl

I think this feature not available under windows.
https://stackoverflow.com/questions/62375976/windows-terminal-clickable-urls

Is it work on linux?

@withinboredom
Copy link

Whether links are clickable depends on the terminal application you are using. In Windows, if you are using Terminal, you have to ctrl-click to open a link in the browser. On Linux, it is the same with Tilex or most terminal applications.

If you are using the old style terminal in windows, it doesn't support opening links via clicks IIRC. I don't even know how to get to it anymore, so I can't easily test it.

@2rkmen
Copy link
Author

2rkmen commented Sep 3, 2023

thank you. It works on new terminal

@2rkmen 2rkmen closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants