/[LeafOK_CVS]/lbbs/src/screen.c
ViewVC logotype

Diff of /lbbs/src/screen.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.112 by sysadm, Fri Oct 17 10:57:43 2025 UTC Revision 1.113 by sysadm, Fri Oct 17 11:23:30 2025 UTC
# Line 102  void clearscr() Line 102  void clearscr()
102          moveto(0, 0);          moveto(0, 0);
103  }  }
104    
105  int press_any_key()  inline int press_any_key()
106    {
107            return press_any_key_ex("                           \033[1;33m按任意键继续...\033[m");
108    }
109    
110    int press_any_key_ex(const char *msg)
111  {  {
112          int ch = 0;          int ch = 0;
113          int wait_seconds = 60;          int wait_seconds = 60;
# Line 112  int press_any_key() Line 117  int press_any_key()
117          moveto(SCREEN_ROWS, 0);          moveto(SCREEN_ROWS, 0);
118          clrtoeol();          clrtoeol();
119    
120          prints("                           \033[1;33m按任意键继续...\033[0;37m");          prints(msg);
121          iflush();          iflush();
122    
123          do          do


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1