Reputation: 15
So I have a console application through visual studio on my Mac and after I “press any key to continue” I get extra text after it saying:
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Does anybody know what this is or how to hide it?
Upvotes: 1
Views: 915
Reputation: 100
I had the same issue on my Mac. For me it simply worked:
Then I ran the project again for debug and worked as expected. At this point I think the problem had to do with the installer not being ejected, but I wouldn't be 100% sure.
Upvotes: 0
Reputation: 47967
You can configure your console project so that it does not use the separate terminal window and instead all output goes to the Application Output window inside Visual Studio for Mac.
Then when you run or debug the console project the Application Output window will show the output from your application.
This works well if your console project does not require any input from the user since the Application Output window cannot handle input, such as from a Console.ReadLine().
Upvotes: 0
Reputation: 10682
This is your Mac telling you that the current Bash
session has ended.
You'll see the same thing if you open Terminal
and then type: exit
:
$ exit
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...322 completed.
[Process completed]
So, this is not a Visual Studio thing at all. Visual Studio finished the application that it was running in the Bash
context, and then cleanly closed that session.
Upvotes: 2