• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Commit MetaInfo

修訂aefb3d4c86dda70169f218e0b995e17216cf3e5b (tree)
時間2019-11-15 19:59:24
作者IWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Log Message

support CSI with Ichar.

Change Summary

差異

--- a/termlog.c
+++ b/termlog.c
@@ -442,7 +442,7 @@ csi(fp)
442442 FILE *fp;
443443 {
444444 int c, i, j, k, n, np, p[10];
445- int leader;
445+ int leader, ich = '\0';
446446 cell *tmp;
447447
448448 c = getc(fp);
@@ -467,12 +467,19 @@ FILE *fp;
467467 }
468468 if (np < 10)
469469 p[np++] = n;
470- if (c != ';')
470+ if (' ' <= c && c <= '/') {
471+ ich = c;
472+ }
473+ else if (c != ';')
471474 break;
472475 c = getc(fp);
473476 if (c == EOF)
474477 return EOF;
475478 }
479+
480+ if (ich)
481+ return 0;
482+
476483 switch (c) {
477484 case 'H': /* move cursor */
478485 case 'f': /* move cursor */