cppshane/Background-Terminal

Does not work with WSL

Closed this issue · 3 comments

The problem here is that windows and Linux use different newline characters. To fix this I just implemented a command to manually set the newline character that is being sent when you press return. The command can be used to change to a Linux newline character as follows:

bgt newline \n

cd2e7fc

Running bgt newline \n just gives an error of bgt: command not found. It would also be nice if you could make it detect of the user runs a command to get into WSL (bash, wsl, ubuntu, etc) and auto set the newline character.

Are you sure you rebuilt the project with the changes..? If the inputted string starts with "bgt" it won't even send the command to cmd.exe, so it definitely shouldn't be outputting that. Also you should be running that command from within Background-Terminal. "bgt" is not defined in the system path variables, I just manually check for it in the input string from the textbox before passing the data to the process.

Anyway, I was thinking something along the lines of that as well. I was going to just add a menu for users to define trigger commands (bash, wsl, ubuntu, etc.) with their respective newline definitions.