Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Fix the special character drawings, thanks to Andrius Bentkus for fin…
Browse files Browse the repository at this point in the history
…ding this problem (also fixes MacOS rendering)
  • Loading branch information
migueldeicaza committed Feb 24, 2011
1 parent b14ad69 commit dd6bc55
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 37 deletions.
10 changes: 9 additions & 1 deletion binding.cs.in
Expand Up @@ -220,9 +220,17 @@ namespace Mono.Terminal {
}

static char [] r = new char [1];


//
// Have to wrap the native addch, as it can not
// display unicode characters, we have to use addstr
// for that. but we need addch to render special ACS
// characters
//
public static int addch (int ch)
{
if (ch > 0xffff)
return _addch (ch);
char c = (char) ch;
return addstr (new String (c, 1));
}
Expand Down
5 changes: 5 additions & 0 deletions docs/Mono.Terminal/Application.xml
Expand Up @@ -39,6 +39,7 @@
</Member>
<Member MemberName="Begin">
<MemberSignature Language="C#" Value="public static Mono.Terminal.RunState Begin (Mono.Terminal.Container container);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Mono.Terminal.RunState Begin(class Mono.Terminal.Container container) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
Expand Down Expand Up @@ -441,6 +442,7 @@
</Member>
<Member MemberName="End">
<MemberSignature Language="C#" Value="public static void End (Mono.Terminal.RunState state);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void End(class Mono.Terminal.RunState state) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
Expand Down Expand Up @@ -771,6 +773,7 @@
</Member>
<Member MemberName="RunLoop">
<MemberSignature Language="C#" Value="public static void RunLoop (Mono.Terminal.RunState state);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void RunLoop(class Mono.Terminal.RunState state) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
Expand All @@ -794,6 +797,7 @@
</Member>
<Member MemberName="RunLoop">
<MemberSignature Language="C#" Value="public static void RunLoop (Mono.Terminal.RunState state, bool wait);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void RunLoop(class Mono.Terminal.RunState state, bool wait) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
Expand All @@ -819,6 +823,7 @@
</Member>
<Member MemberName="Stop">
<MemberSignature Language="C#" Value="public static void Stop ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void Stop() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
Expand Down

0 comments on commit dd6bc55

Please sign in to comment.