home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume22 / nn6.4 / part21 / menu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  2.2 KB  |  58 lines

  1. /*
  2.  *    (c) Copyright 1990, Kim Fabricius Storm.  All rights reserved.
  3.  *
  4.  *    Various module return codes.
  5.  */
  6.  
  7. /* menu commands */
  8.  
  9. #define ME_QUIT        0    /* quit nn */
  10. #define ME_NEXT        1    /* continue to next group */
  11. #define ME_PREV        3    /* previous group */
  12. #define ME_NO_ARTICLES    4    /* no articles in group */
  13. #define ME_REDRAW    5    /* redraw screen after return */
  14. #define ME_NO_REDRAW    6    /* screen is not corrupted */
  15. #define ME_REENTER_GROUP 7    /* reenter after .newsrc update */
  16.  
  17.  
  18. /* more commands */
  19.  
  20. #define MC_QUIT        0    /* quit nn */
  21. #define    MC_NEXT        1    /* next article */
  22. #define MC_MENU        2    /* return to menu */
  23. #define MC_PREV        3    /* previous article */
  24. #define MC_NEXTSUBJ    4    /* show next subject */
  25. #define MC_ALLSUBJ    5    /* show all with same subject */
  26. #define MC_NEXTGROUP    6    /* next group, no read */
  27. #define    MC_READGROUP    7    /* next group, mark as read */
  28. #define MC_PREVIEW_NEXT    8    /* preview next article */
  29. #define MC_PREVIEW_OTHER 9    /* preview another article */
  30. #define MC_REDRAW    10    /* redraw screen after return */
  31. #define MC_NO_REDRAW    11    /* screen is not corrupted */
  32. #define    MC_BACK_ART    12    /* back one article (don't deselect cur) */
  33. #define MC_FORW_ART    13    /* forward one article (deselect cur) */
  34. #define MC_DO_KILL    14    /* did kill-select kill */
  35. #define MC_DO_SELECT    15    /* did kill-select selection */
  36. #define MC_REENTER_GROUP 16    /* reenter after .newsrc update */
  37.  
  38. /* more modes */
  39.  
  40. #define    MM_NORMAL        0x0000    /* show article */
  41. #define MM_DIGEST        0x0001    /* show full digest */
  42. #define MM_PREVIOUS        0x0010    /* previous article exists */
  43. #define MM_LAST_SELECTED    0x0020    /* last selected article in group */
  44. #define MM_LAST_GROUP        0x0040    /* last group */
  45. #define MM_PREVIEW        0x0080    /* preview mode flag */
  46. #define MM_FIRST_ARTICLE     0x0100    /* first article in group */
  47. #define MM_LAST_ARTICLE        0x0200    /* last article in group */
  48.  
  49. /* alt_command return values */
  50.  
  51. #define    AC_QUIT        0    /* quit nn */
  52. #define    AC_PROMPT    1    /* just redraw prompt line */
  53. #define    AC_REDRAW    2    /* redraw screen */
  54. #define AC_REORDER    3    /* articles have been reordered */
  55. #define    AC_REENTER_GROUP 4    /* reenter group after .newsrc update */
  56. #define AC_KEYCMD    5    /* alt_cmd_key contains command */
  57. #define AC_UNCHANGED    6    /* no display changes */
  58.