My mirror of the Barnard terminal client for Mumble.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

92 rindas
1.8 KiB

  1. package uiterm
  2. /*
  3. * Source: https://godoc.org/github.com/nsf/termbox-go
  4. */
  5. type Modifier uint8
  6. const (
  7. ModAlt Modifier = 0x01
  8. )
  9. type Key uint16
  10. const (
  11. KeyF1 Key = 0xFFFF - iota
  12. KeyF2
  13. KeyF3
  14. KeyF4
  15. KeyF5
  16. KeyF6
  17. KeyF7
  18. KeyF8
  19. KeyF9
  20. KeyF10
  21. KeyF11
  22. KeyF12
  23. KeyInsert
  24. KeyDelete
  25. KeyHome
  26. KeyEnd
  27. KeyPgup
  28. KeyPgdn
  29. KeyArrowUp
  30. KeyArrowDown
  31. KeyArrowLeft
  32. KeyArrowRight
  33. MouseLeft
  34. MouseMiddle
  35. MouseRight
  36. )
  37. const (
  38. KeyCtrlTilde Key = 0x00
  39. KeyCtrl2 Key = 0x00
  40. KeyCtrlSpace Key = 0x00
  41. KeyCtrlA Key = 0x01
  42. KeyCtrlB Key = 0x02
  43. KeyCtrlC Key = 0x03
  44. KeyCtrlD Key = 0x04
  45. KeyCtrlE Key = 0x05
  46. KeyCtrlF Key = 0x06
  47. KeyCtrlG Key = 0x07
  48. KeyBackspace Key = 0x08
  49. KeyCtrlH Key = 0x08
  50. KeyTab Key = 0x09
  51. KeyCtrlI Key = 0x09
  52. KeyCtrlJ Key = 0x0A
  53. KeyCtrlK Key = 0x0B
  54. KeyCtrlL Key = 0x0C
  55. KeyEnter Key = 0x0D
  56. KeyCtrlM Key = 0x0D
  57. KeyCtrlN Key = 0x0E
  58. KeyCtrlO Key = 0x0F
  59. KeyCtrlP Key = 0x10
  60. KeyCtrlQ Key = 0x11
  61. KeyCtrlR Key = 0x12
  62. KeyCtrlS Key = 0x13
  63. KeyCtrlT Key = 0x14
  64. KeyCtrlU Key = 0x15
  65. KeyCtrlV Key = 0x16
  66. KeyCtrlW Key = 0x17
  67. KeyCtrlX Key = 0x18
  68. KeyCtrlY Key = 0x19
  69. KeyCtrlZ Key = 0x1A
  70. KeyEsc Key = 0x1B
  71. KeyCtrlLsqBracket Key = 0x1B
  72. KeyCtrl3 Key = 0x1B
  73. KeyCtrl4 Key = 0x1C
  74. KeyCtrlBackslash Key = 0x1C
  75. KeyCtrl5 Key = 0x1D
  76. KeyCtrlRsqBracket Key = 0x1D
  77. KeyCtrl6 Key = 0x1E
  78. KeyCtrl7 Key = 0x1F
  79. KeyCtrlSlash Key = 0x1F
  80. KeyCtrlUnderscore Key = 0x1F
  81. KeySpace Key = 0x20
  82. KeyBackspace2 Key = 0x7F
  83. KeyCtrl8 Key = 0x7F
  84. )