📄 readme
字号:
SunOS 4.1.X curses is broken. It occasionally repaints the wrong thingon the screen, and nobody has been able to figure out a workaround otherthan to rewrite curscr every time stdscr is modified. This, obviously,trashes performance. A test program is attached.=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/* * Compile with: * /usr/5bin/cc -DSYSV_CURSES curse.c -lcurses * * Broken on: SunOS virtual61 4.1.3C 8 sun4m * * The broken behavior can be seen in that the line is first displayed, * then redisplayed, with a missing the 'r' from the word "different", * and then redisplayed correctly. */#include <sys/types.h>#include <curses.h>#include <stdio.h>#define S1 "ing different traces, both beginning at the same time"#define S2 " using different traces, both beginning at the same time"main(){#ifdef SYSV_CURSES newterm("xterm", stdout, stdin);#else initscr();#endif mvaddstr(0, 0, S1); refresh(); write(1, "\07", 1); sleep(2); mvaddstr(0, 0, S2); refresh(); write(1, "\07", 1); sleep(2); wrefresh(curscr); write(1, "\07", 1); sleep(2); endwin();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -