📄 log.c
字号:
/* New for v2.0: readline support -- daw *//* i put the logging crap in it's own file, in case we wanna change it later */#include <stdio.h>#include "tintin.h"voidlogit(s, b) struct session *s; char *b;{ static char bb[BUFFER_SIZE+1]; int i, j; if (s->logfile == NULL) return;#if OLD_LOG fputs(b, s->logfile);#else /* new logging behavior: ignore control-m's */ for (i=j=0; b[i]; i++) if (b[i] != '\r') bb[j++] = b[i]; bb[j] = '\0'; fputs(bb, s->logfile);#endif}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -