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

WSL bash terminal colors documentation #14

Open
webframp opened this issue Aug 3, 2017 · 1 comment
Open

WSL bash terminal colors documentation #14

webframp opened this issue Aug 3, 2017 · 1 comment

Comments

@webframp
Copy link

webframp commented Aug 3, 2017

ConEmu.github.io/en/BashOnWindows.md seems a little unclear to me after trying to get it setup using the existing instructions. It seems like wslbridge is included now in the install. Does it need to be updated for the current state of things?

This section still seems to indicate that wslbridge has to be installed separately and that manual setup of a task might be required.

PS C:\Program Files\ConEmu\ConEmu\wsl> ConEmuC /OsVerInfo
OS version information
10.0 build 15063 SP0.0 suite=x0100 type=1
W5fam=0 WXPSP1=1 W6=1 W7=1 W10=1 Wx64=1
HWFS=0 DBCS=0 WINE=0 WPE=0 TELNET=0

PS C:\Program Files\ConEmu\ConEmu\wsl> ConEmuC /ConInfo
ConEmu 170730 x86
OS Version: 10.0.15063 (2:)
SM_IMMENABLED=1, SM_DBCSENABLED=0, ACP=1252, OEMCP=437
ConHWND=0x000F0D08, Class="ConsoleWindowClass"
Console font info: 0, {3x5}, 54, 400, "Lucida Console"
Handles: In=x8 (Mode=x1F) Out=xC (x3) Err=x10 (x3)
Buffer={104,10000} Window={0,828}-{103,869} MaxSize={104,168}
Cursor: Pos={0,869} Size=25% Visible
ConsoleCP=437, ConsoleOutputCP=437
CP437: Max=1 Def=x3F,x00 UDef=x3F
  Lead=x00,x00,x00,x00,x00,x00,x00,x00,x00,x00,x00,x00
  Name="437   (OEM - United States)"

This version has a `Bash::bash task with the following:

set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt
@Maximus5
Copy link
Collaborator

Maximus5 commented Aug 3, 2017

This version has a `Bash::bash task with the following:

It's correct.

wslbridge is included in the latest alpha. wsl-con.cmd was updated to use local (installed) files.

There is absolutely no API to retrieve extended (true-color) attributes from console. ConEmu tries to emulate true-color mode, but the implementation was created for fixed buffer (no backscroll), if there is backscroll true-color works only at the bottom of the buffer.

Of course this implementation have to be rewritten completely, but in view of required synchonous work with native API (conhost) it's complicated a bit.

PR for docs or code are welcome.

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

2 participants