home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / menu.h < prev    next >
C/C++ Source or Header  |  1995-04-29  |  2KB  |  64 lines

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