top
(README.md)
# go-ansiterm

This is a cross platform Ansi Terminal Emulation library.  It reads a stream of Ansi characters and produces the appropriate function calls.  The results of the function calls are platform dependent.

For example the parser might receive "ESC, [, A" as a stream of three characters.  This is the code for Cursor Up (http://www.vt100.net/docs/vt510-rm/CUU).  The parser then calls the cursor up function (CUU()) on an event handler.  The event handler determines what platform specific work must be done to cause the cursor to move up one position.

The parser (parser.go) is a partial implementation of this state machine (http://vt100.net/emu/vt500_parser.png).  There are also two event handler implementations, one for tests (test_event_handler.go) to validate that the expected events are being produced and called, the other is a Windows implementation (winterm/win_event_handler.go).

See parser_test.go for examples exercising the state machine and generating appropriate function calls.

-----
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

Imported by 89 package(s)

  1. github.com/0xAX/docker/pkg/term/windows
  2. github.com/AkihiroSuda/docker/pkg/term/windows
  3. github.com/BrickXu/docker/pkg/term/windows
  4. github.com/DieterReuter/docker/pkg/term/windows
  5. github.com/FillZpp/docker/pkg/term/windows
  6. github.com/LarsFronius/docker/pkg/term/windows
  7. github.com/Morsicus/docker/pkg/term/windows
  8. github.com/Oscarzhao/docker/pkg/term/windows
  9. github.com/Treeptik/docker/pkg/term/windows
  10. github.com/WeiZhang555/docker/pkg/term/windows
  11. github.com/abhinavdahiya/docker/pkg/term/windows
  12. github.com/abronan/docker/pkg/term/windows
  13. github.com/adnaan/docker/pkg/term/windows
  14. github.com/aksentyev/docker/pkg/term/windows
  15. github.com/alexblanquart/docker/pkg/term/windows
  16. github.com/arvinkulagin/docker/pkg/term/windows
  17. github.com/asbjornenge/docker/pkg/term/windows
  18. github.com/awakenetworks/docker/pkg/term/windows
  19. github.com/bamarni/docker/pkg/term/windows
  20. github.com/bluebreezecf/docker/pkg/term/windows
  21. github.com/brahmaroutu/docker/pkg/term/windows
  22. github.com/carbonblack/docker/pkg/term/windows
  23. github.com/cgt212/docker/pkg/term/windows
  24. github.com/chosenken/docker/pkg/term/windows
  25. github.com/chrisbbe/docker/pkg/term/windows
  26. github.com/christianwoehrle/docker/pkg/term/windows
  27. github.com/citysir/docker/pkg/term/windows
  28. github.com/cyphar/docker/pkg/term/windows
  29. github.com/darrellpratt/docker/pkg/term/windows
  30. github.com/datawolf/docker/pkg/term/windows
  31. github.com/denverdino/docker/pkg/term/windows
  32. github.com/dieterreuter/docker/pkg/term/windows
  33. github.com/dlespiau/docker/pkg/term/windows
  34. github.com/docker/docker/pkg/term/windows
  35. github.com/dpiddy/docker/pkg/term/windows
  36. github.com/ehazlett/docker/pkg/term/windows
  37. github.com/erikstmartin/docker/pkg/term/windows
  38. github.com/gaocegege/docker/pkg/term/windows
  39. github.com/hairyhenderson/docker/pkg/term/windows
  40. github.com/henvic/docker/pkg/term/windows
  41. github.com/ilkka/docker/pkg/term/windows
  42. github.com/inercia/docker/pkg/term/windows
  43. github.com/intoxicated/docker/pkg/term/windows
  44. github.com/jainvipin/docker/pkg/term/windows
  45. github.com/jfrazelle/docker/pkg/term/windows
  46. github.com/johnt337/docker/pkg/term/windows
  47. github.com/jsoriano/docker/pkg/term/windows
  48. github.com/kakilangit/docker-engine/pkg/term/windows
  49. github.com/kasisnu/docker/pkg/term/windows
  50. github.com/kencochrane/docker/pkg/term/windows
  51. github.com/kevinjqiu/docker/pkg/term/windows
  52. github.com/kobeld/docker/pkg/term/windows
  53. github.com/kolyshkin/docker/pkg/term/windows
  54. github.com/kouhin/docker/pkg/term/windows
  55. github.com/lai-nam/docker/pkg/term/windows
  56. github.com/lchi/docker/pkg/term/windows
  57. github.com/lxfontes/docker/pkg/term/windows
  58. github.com/machinaut/docker/pkg/term/windows
  59. github.com/mesos-utility/docker/pkg/term/windows
  60. github.com/mgazz/docker/pkg/term/windows
  61. github.com/mgilbir/docker/pkg/term/windows
  62. github.com/mgoelzer/docker/pkg/term/windows
  63. github.com/movicha/docker/pkg/term/windows
  64. github.com/mtrmac/docker/pkg/term/windows
  65. github.com/portworx/docker/pkg/term/windows
  66. github.com/public0821/docker/pkg/term/windows
  67. github.com/random-liu/docker/pkg/term/windows
  68. github.com/reds/docker/pkg/term/windows
  69. github.com/sandlbn/docker/pkg/term/windows
  70. github.com/sdurrheimer/docker/pkg/term/windows
  71. github.com/shin-/docker/pkg/term/windows
  72. github.com/shubhodeep9/docker/pkg/term/windows
  73. github.com/slimsag/docker/pkg/term/windows
  74. github.com/stevvooe/docker/pkg/term/windows
  75. github.com/tanji/docker/pkg/term/windows
  76. github.com/tetrafolium/docker/pkg/term/windows
  77. github.com/tkopczynski/docker/pkg/term/windows
  78. github.com/trayo/docker/pkg/term/windows
  79. github.com/vieux/docker/pkg/term/windows
  80. github.com/wallyqs/docker/pkg/term/windows
  81. github.com/weaveworks/docker/pkg/term/windows
  82. github.com/wolf/docker/pkg/term/windows
  83. github.com/wzhliang/docker/pkg/term/windows
  84. github.com/xianlubird/docker/pkg/term/windows
  85. github.com/xtaci/docker/pkg/term/windows
  86. github.com/yosifkit/docker/pkg/term/windows
  87. github.com/yp-engineering/docker/pkg/term/windows
  88. github.com/ywk253100/docker/pkg/term/windows
  89. gopkg.in/docker/docker.v1/pkg/term/windows

Imports 1 package(s)

  1. github.com/Sirupsen/logrus