?? ncurses.patch
字號(hào):
This patch was written by Janne Kukonlehto (jtklehto@stekt.oulu.fi),
it adds 8 bit clean support to ncurses 1.8.5
--- ncurses-1.8.5/src/lib_addch.c.old Sun Oct 30 21:03:08 1994
+++ ncurses-1.8.5/src/lib_addch.c Sun Oct 30 21:04:59 1994
@@ -32,6 +32,13 @@
if (y > win->_maxy || x > win->_maxx || y < 0 || x < 0)
return(ERR);
+ /* Attempt to solve problems caused by
+ sign-extension of eighth bit
+ (this should make ncurses 8-bit clean) */
+ if ((ch & A_ATTRIBUTES) == A_ATTRIBUTES){
+ ch &= A_CHARTEXT;
+ }
+
switch (ch&A_CHARTEXT) {
case '\t':
for (newx = x + (8 - (x & 07)); x < newx; x++)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -