PageRenderTime 37ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/base/Kernel/Singularity.Hal.Omap3430/HalScreenNull.cs

#
C# | 101 lines | 76 code | 16 blank | 9 comment | 0 complexity | 39a4a436f98453b55985fa9f0c6ace3b MD5 | raw file
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Research Singularity
  4. //
  5. // Copyright (c) Microsoft Corporation. All rights reserved.
  6. //
  7. // File: HalScreenNull.cs
  8. //
  9. //
  10. using System;
  11. using System.Runtime.CompilerServices;
  12. using Microsoft.Singularity.Channels;
  13. using Microsoft.Singularity.Io;
  14. using Microsoft.Singularity.Configuration;
  15. [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
  16. [assembly: System.Reflection.AssemblyKeyFileAttribute(@"..\public.snk")]
  17. [assembly: System.Reflection.AssemblyDelaySignAttribute(true)]
  18. namespace Microsoft.Singularity.Hal
  19. {
  20. [CLSCompliant(false)]
  21. public class HalScreenNull : HalScreen
  22. {
  23. public HalScreenNull(IoConfig config)
  24. {
  25. }
  26. [NoHeapAllocation]
  27. public override void CursorFlash()
  28. {
  29. }
  30. [NoHeapAllocation]
  31. public override void CursorHide()
  32. {
  33. }
  34. [NoHeapAllocation]
  35. public override void CursorShow()
  36. {
  37. }
  38. [NoHeapAllocation]
  39. public override void Clear()
  40. {
  41. }
  42. [NoHeapAllocation]
  43. public override void GetDisplayDimensions(out int columns, out int rows)
  44. {
  45. columns = 1;
  46. rows = 1;
  47. }
  48. [NoHeapAllocation]
  49. public override void GetCursorPosition(out int column, out int row)
  50. {
  51. column = 0;
  52. row = 0;
  53. }
  54. [NoHeapAllocation]
  55. public override void SetCursorSizeLarge()
  56. {
  57. }
  58. [NoHeapAllocation]
  59. public override void SetCursorSizeSmall()
  60. {
  61. }
  62. [NoHeapAllocation]
  63. public override bool SetCursorPosition(int column, int row)
  64. {
  65. return true;
  66. }
  67. [NoHeapAllocation]
  68. public override void ClearCursorToEndOfLine()
  69. {
  70. }
  71. [NoHeapAllocation]
  72. public override bool PutCharAt(char c, int column, int row)
  73. {
  74. return true;
  75. }
  76. [NoHeapAllocation]
  77. public override void PutChar(char c)
  78. {
  79. }
  80. [NoHeapAllocation]
  81. public override void Write(byte[] buffer, int offset, int count)
  82. {
  83. }
  84. }
  85. } // namespace Microsoft.Singularity.Hal