Impact: None.
Some modes could requires disabling more_printf
#define AUTO_DELIMITER "'"
extern int display_line_nb;
+extern bool disable_more_printf;
#define pause_printf() do {\
printf("--More--");\
* one \n (and only one)
*/
#define more_printf(...) do {\
- if (display_line_nb == 20) {\
- printf("\n--More--");\
+ if (!disable_more_printf) {\
+ if (display_line_nb == 20) {\
display_line_nb=0;\
+ printf("\n--More--");\
get_key(stdin, 0);\
printf("\033[2K\033[1G\033[1F");\
+ }\
+ display_line_nb++;\
}\
printf(__VA_ARGS__);\
- display_line_nb++;\
} while (0);
/* Display CPU registers for debugging purposes */
#include "hdt-common.h"
int display_line_nb = 0;
+bool disable_more_printf = false;
int main(const int argc, const char *argv[])
{