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 67 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/Morsicus/docker/pkg/term/windows
  7. github.com/Oscarzhao/docker/pkg/term/windows
  8. github.com/WeiZhang555/docker/pkg/term/windows
  9. github.com/abhinavdahiya/docker/pkg/term/windows
  10. github.com/abronan/docker/pkg/term/windows
  11. github.com/adnaan/docker/pkg/term/windows
  12. github.com/asbjornenge/docker/pkg/term/windows
  13. github.com/bamarni/docker/pkg/term/windows
  14. github.com/bluebreezecf/docker/pkg/term/windows
  15. github.com/brahmaroutu/docker/pkg/term/windows
  16. github.com/carbonblack/docker/pkg/term/windows
  17. github.com/christianwoehrle/docker/pkg/term/windows
  18. github.com/citysir/docker/pkg/term/windows
  19. github.com/cyphar/docker/pkg/term/windows
  20. github.com/datawolf/docker/pkg/term/windows
  21. github.com/dieterreuter/docker/pkg/term/windows
  22. github.com/dlespiau/docker/pkg/term/windows
  23. github.com/docker/docker/pkg/term/windows
  24. github.com/dpiddy/docker/pkg/term/windows
  25. github.com/ehazlett/docker/pkg/term/windows
  26. github.com/erikstmartin/docker/pkg/term/windows
  27. github.com/gaocegege/docker/pkg/term/windows
  28. github.com/hairyhenderson/docker/pkg/term/windows
  29. github.com/ilkka/docker/pkg/term/windows
  30. github.com/inercia/docker/pkg/term/windows
  31. github.com/intoxicated/docker/pkg/term/windows
  32. github.com/jfrazelle/docker/pkg/term/windows
  33. github.com/jsoriano/docker/pkg/term/windows
  34. github.com/kakilangit/docker-engine/pkg/term/windows
  35. github.com/kasisnu/docker/pkg/term/windows
  36. github.com/kencochrane/docker/pkg/term/windows
  37. github.com/kevinjqiu/docker/pkg/term/windows
  38. github.com/kobeld/docker/pkg/term/windows
  39. github.com/kolyshkin/docker/pkg/term/windows
  40. github.com/kouhin/docker/pkg/term/windows
  41. github.com/lchi/docker/pkg/term/windows
  42. github.com/machinaut/docker/pkg/term/windows
  43. github.com/mesos-utility/docker/pkg/term/windows
  44. github.com/mgazz/docker/pkg/term/windows
  45. github.com/mgilbir/docker/pkg/term/windows
  46. github.com/mgoelzer/docker/pkg/term/windows
  47. github.com/movicha/docker/pkg/term/windows
  48. github.com/mtrmac/docker/pkg/term/windows
  49. github.com/portworx/docker/pkg/term/windows
  50. github.com/public0821/docker/pkg/term/windows
  51. github.com/random-liu/docker/pkg/term/windows
  52. github.com/reds/docker/pkg/term/windows
  53. github.com/sandlbn/docker/pkg/term/windows
  54. github.com/shin-/docker/pkg/term/windows
  55. github.com/stevvooe/docker/pkg/term/windows
  56. github.com/tanji/docker/pkg/term/windows
  57. github.com/tkopczynski/docker/pkg/term/windows
  58. github.com/trayo/docker/pkg/term/windows
  59. github.com/vieux/docker/pkg/term/windows
  60. github.com/wallyqs/docker/pkg/term/windows
  61. github.com/weaveworks/docker/pkg/term/windows
  62. github.com/wolf/docker/pkg/term/windows
  63. github.com/xianlubird/docker/pkg/term/windows
  64. github.com/xtaci/docker/pkg/term/windows
  65. github.com/yosifkit/docker/pkg/term/windows
  66. github.com/yp-engineering/docker/pkg/term/windows
  67. gopkg.in/docker/docker.v1/pkg/term/windows

Imports 1 package(s)

  1. github.com/Sirupsen/logrus