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

Latest Clink under ConEmu does not show current location prompt #1301

Closed
Maximus5 opened this issue Jul 31, 2015 · 7 comments
Closed

Latest Clink under ConEmu does not show current location prompt #1301

Maximus5 opened this issue Jul 31, 2015 · 7 comments

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 1301

OS version: Win 8.1 Pro x64
ConEmu version: 131020 x64
Clink version: vDEV [git:b9cd94]


*Bug description*
When running Clink under ConEmu the current location prompt (i.e. C:\>) is not visible.
Running Clink directly in cmd.exe shows prompt regularly (as can be seen on attached
screenshot).

*Steps to reproduction*
1. Run Clink in cmd.exe directly. Prompt is visible.
2. Run Clink in ConEmu. Prompt is not visible


Reported by krckoorascic on 2013-10-24 12:44:12


- _Attachment: clink+conemu.png
![clink+conemu.png](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1301/comment-0/clink+conemu.png)_
@Maximus5
Copy link
Owner Author

I think you need to report that to clink author.

Reported by ConEmu.Maximus5 on 2013-10-24 13:19:24

@Maximus5
Copy link
Owner Author

Thank you on quick reply! 

I wasn't sure where should I post the issue at first but I've decided to try first
here, as Clink under cmd.exe works fine.
I'll post the issue at Clink then and I'll update this one with any news.

Reported by krckoorascic on 2013-10-24 13:31:29

@Maximus5
Copy link
Owner Author

At least, I see one difference in your screenshot - ver is not printed in cmd.
That means - different start options. 

Reported by ConEmu.Maximus5 on 2013-10-24 13:52:39

@Maximus5
Copy link
Owner Author

Hmm, you're right. I wasn't paying attention to cmd.exe's version output. I was only
looking at clink version..

Anyway I've found that this issue is already reported at clink issue tracker (https://code.google.com/p/clink/issues/detail?id=151)
just few hours ago.

Reported by krckoorascic on 2013-10-24 14:07:11

@Maximus5
Copy link
Owner Author

The problem lies with the unorthodox way that ConEmu runs Clink and not with Clink itself.

ConEmu hooks cmd.exe's RegQueryValueExW import and runs Clink when cmd.exe reads the
"AutoRun" key. However this is too early as cmd.exe hasn't yet set the "prompt" environment
variable which Clink is dependent upon.

There are two workarounds;

1. Install Clink the supported way instead of using ConEmu's solution.
2. Run the command "prompt $p$g" after cmd.exe's start (or "set prompt=$p$g" if you
so wish).

Reported by martin.ridgers on 2013-10-24 22:12:44

@Maximus5
Copy link
Owner Author

Thanks, Martin. I'll change loading behavior.

Reported by ConEmu.Maximus5 on 2013-10-24 23:03:40

  • Status changed: Accepted

@Maximus5
Copy link
Owner Author

131103

Reported by ConEmu.Maximus5 on 2013-11-04 03:19:14

  • Status changed: Fixed

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

No branches or pull requests

1 participant