specials.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Commands that are generally useful in multiple backends.
  3. */
  4. SPECIAL(BRK) /* serial-line break */
  5. SPECIAL(EOF) /* end-of-file on session input */
  6. SPECIAL(NOP) /* transmit data with no effect */
  7. SPECIAL(PING) /* try to keep the session alive (probably, but not
  8. * necessarily, implemented as SS_NOP) */
  9. /*
  10. * Commands specific to Telnet.
  11. */
  12. SPECIAL(AYT) /* Are You There */
  13. SPECIAL(SYNCH) /* Synch */
  14. SPECIAL(EC) /* Erase Character */
  15. SPECIAL(EL) /* Erase Line */
  16. SPECIAL(GA) /* Go Ahead */
  17. SPECIAL(ABORT) /* Abort Process */
  18. SPECIAL(AO) /* Abort Output */
  19. SPECIAL(IP) /* Interrupt Process */
  20. SPECIAL(SUSP) /* Suspend Process */
  21. SPECIAL(EOR) /* End Of Record */
  22. SPECIAL(EOL) /* Telnet end-of-line sequence (CRLF, as opposed to
  23. * CR NUL that escapes a literal CR) */
  24. /*
  25. * Commands specific to SSH.
  26. */
  27. SPECIAL(REKEY) /* trigger an immediate repeat key exchange */
  28. SPECIAL(XCERT) /* cross-certify another host key ('arg' indicates which) */
  29. /*
  30. * Send a POSIX-style signal. (Useful in SSH and also pterm.)
  31. *
  32. * We use the master list in ssh/signal-list.h to define these enum
  33. * values, which will come out looking like names of the form
  34. * SS_SIGABRT, SS_SIGINT etc.
  35. */
  36. #define SIGNAL_MAIN(name, text) SPECIAL(SIG ## name)
  37. #define SIGNAL_SUB(name) SPECIAL(SIG ## name)
  38. #include "ssh/signal-list.h"
  39. #undef SIGNAL_MAIN
  40. #undef SIGNAL_SUB
  41. /*
  42. * These aren't really special commands, but they appear in the
  43. * enumeration because the list returned from backend_get_specials()
  44. * will use them to specify the structure of the GUI specials menu.
  45. */
  46. SPECIAL(SEP) /* Separator */
  47. SPECIAL(SUBMENU) /* Start a new submenu with specified name */
  48. SPECIAL(EXITMENU) /* Exit current submenu, or end of entire specials list */