-
Notifications
You must be signed in to change notification settings - Fork 700
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
No line-drawing characters on kubectl exec session to Ubuntu #1519
Comments
Hey. Thanks for creating this issue. Are you able to replicate the issue using
Also worth trying with I'm not sure I can help with the actual issue but this might be a workaround for now? Either way adding support to your app for this switch could help with flexibility of deployments. |
Thanks for the quick reply!
Tried to find out how to exit the app.. Then I had to
And finally Ok, finally-finally, here's That's great, so it can work! I can probably workaround this way. But on Windows, the It does look like there may be an issue with |
Thanks for testing this out! Glad that usc is working. But yeah it is very slow on Windows. I make it a command line switch to my app rather than trying to detect the environment but that is a bit cryptic from user perspective. I'll let @BDisp respond on the actual issue as I don't know the low level stuff. |
Maybe playing around:
|
I found that in the version I'm using (along with a reference to #949). Is there something specifc I can try changing it to? |
No. Since these runes was added to the
Try changing that values between 0 to 6. But I think it's something with a lack of font. I never tried run on |
It's a big of an undertaking to get going with Kubernetes! I'm going to create a DigitalOcean droplet and try to repro it there, I think it'll be a general Linux issue |
Try this #949 (comment) as last resource. Change |
Believe me, I could never run on a functional terminal with |
Do you can use another |
Edit: discovered that the default .NET Core docker images use Debian 10, not Ubuntu. I created another VM with Debian 10, which worked. So we have: Working: Windows, Ubuntu on WSL, Ubuntu VM, Debian 10 VM Will try an Ubuntu-based Docker image on Kubernetes later today. |
Both Debian and Ubuntu variants of the Repro steps below - note, not using Kubernetes, just Docker. Debian: Ubuntu (general, not Microsoft image): Setup within container for the above:
I also tried Alpine: This one comes with SDK installed, so just But gives:
|
Since is Ubuntu I only changed to |
I can try to set up a VM with remote access, Rider or VS Code etc, to debug. I'll try it later :) Then I can share access to that VM, maybe |
I'm already debugging using the |
I got it running with borders adding the following:
About |
That’s great! Can I ask how you found that out, or any more information around the problem? I’m wondering if it’s something I can programmatically detect etc. thanks 🙂 |
One of the information I saw was here https://stackoverflow.com/questions/28405902/how-to-set-the-locale-inside-a-debian-ubuntu-docker-container. The best workaround I used was:
I would like to know if is possible to debug from |
Just remembered, there is also this: Which can play nice with docker-compose and then you can start debugging directly through VS. My previous example might need something like |
Thanks, I know attaching is possible and I use it very much after launch the application and to catch early I have to use the following, as is in the // Used only for start debugging on Unix.
#if DEBUG
while (!System.Diagnostics.Debugger.IsAttached) {
System.Threading.Thread.Sleep (100);
}
System.Diagnostics.Debugger.Break ();
#endif Thanks for the link. I'll study very carefully. I realy prefer the concept in the |
So i'll keep using the example from my previous issue, if you run something like this:
Should reach the breakpoint as expected inside the container: |
Also shouldn't need a Dockerfile to convert that to a docker-compose, let me know if you would accept a PR and I can try to take a stab at it |
@leomoty, personally I would like to know how do you configure the |
@leomoty you must set the locale into the container to be able to see vertical and horizontal lines, as also some glyphs. See the comments above. |
So I spent a lot of time trying to get this to work inside VS, turns out it doesn't, even if you add the relevant bits that match Added the lang bits you mentioned and glyphs appear properly. This command works:
|
I tried again and is not working. If someone else can test would be great too. But I was intrigued because it is working for you. Are you using an image where the locale is already set and the configuration on the command line does not affect his behavior? |
I'm happy to try something - which steps exactly would be helpful? Also, is there anything I can do in the code to auto-detect if the locale is correctly installed? Then we could programatically set |
Anything you have to improve this is always welcome. My intention is making a
Any code that may automatically detect if some image doesn't contains some resources is good for the creation of the image. Forcing programmatically set I was trying to create only one |
I am actually running Windows 11, would that explain the difference between my Windows Terminal and yours? |
This may absolutely explains the differences, thanks for share. Does the |
Yup |
What options did you used?
Run from the Compatibility Checker Utility and obtained the following information: This PC will run Windows 11. (4) Certain features require specific hardware, see https://www.microsoft.com/windows/windows-11-specifications. Based on this, I think it is preferable to wait for the update of Windows Update |
Hey, I got the update through Windows Update since I did test the betas. But afaik the advisor they have will give you the same upgrade result. If you already qualify you won't need to fight to enable TPM / UEFI, or anything like that. |
Can this issue be closed as fixed? |
Yes it was a docker configuration image that I think the user has already figured out the workaround on the Kubernetes. |
Thanks, that's just what I needed (debian:bullseye-slim based image with .net 7) |
Windows, and WSL (Ubuntu) work great:
When I connect to a container running on Kubernetes, on Linux (via
kubectl exec -it MYPOD -n MYNAMESPACE -c MYCONTAINER -- /bin/bash
), all looks grey at first:Then I discovered it's because
TERM
defaults toxterm
. Whenexport TERM=xterm-256color
, I get this:Compared to the first image, there's definitely no line-drawing characters.. but also maybe the bright white colour isn't there either?
I'm using Windows Terminal, which apparently aims for
xterm-256color
support.. and well, it works with WSL/Ubuntu withTERM=xterm-256color
. I also tried just Windows PowerShell, which looks the same.I also tried
export LANG=en_US.UTF-8
, orexport NCURSES_NO_UTF8_ACS=1
, both with no effect.I've tried using other apps / writing general .NET code...
k9s
can render lines ok. Colour and emojis work fine with other apps.I'm not sure if this is a
gui.cs
issue, but since other apps can render stuff ok, I thought I'd check in here. Maybe someone knows something else I could try? Thanks!(Couldn't be anything to do with 356b0f8 could it?)
The text was updated successfully, but these errors were encountered: