Skip to content

Exception when running Minecraft Console Client as a script #8

@breadbyte

Description

@breadbyte

When starting MCC through a script / redirected input, the following exception occurs:

Unhandled exception. System.TypeInitializationException: The type initializer for 'ConsoleInteractive.InternalContext' threw an exception.
 ---> System.IO.IOException: The handle is invalid.
   at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.Console.get_BufferWidth()
   at ConsoleInteractive.InternalContext..cctor() in C:\mcc-repos\Minecraft-Console-Client\ConsoleInteractive\ConsoleInteractive\ConsoleInteractive\InternalContext.cs:line 14
   --- End of inner exception stack trace ---
   at ConsoleInteractive.ConsoleBuffer.DrawPrefix() in C:\mcc-repos\Minecraft-Console-Client\ConsoleInteractive\ConsoleInteractive\ConsoleInteractive\ConsoleBuffer.cs:line 200
   at ConsoleInteractive.ConsoleReader.KeyListener(Object cancellationToken) in C:\mcc-repos\Minecraft-Console-Client\ConsoleInteractive\ConsoleInteractive\ConsoleInteractive\ConsoleReader.cs:line 86
   at System.Threading.Thread.StartCallback()

The prefix is then not drawn at this point.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions