mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-13 03:31:22 +00:00
Console.ReadLine() now works
This commit is contained in:
parent
e277632e8d
commit
d7be8a0fda
1 changed files with 7 additions and 1 deletions
|
|
@ -49,7 +49,13 @@ namespace Cosmos.Kernel.Plugs {
|
|||
Write (current);
|
||||
}
|
||||
WriteLine ();
|
||||
return new string(chars.ToArray());
|
||||
|
||||
// HACK: Should use .ToArray here.
|
||||
char[] final = new char[chars.Count];
|
||||
for (int i = 0; i < final.Length; i++)
|
||||
final[i] = chars[i];
|
||||
|
||||
return new string(final);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue