• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisionaefb3d4c86dda70169f218e0b995e17216cf3e5b (tree)
l'heure2019-11-15 19:59:24
AuteurIWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Message de Log

support CSI with Ichar.

Change Summary

Modification

--- 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 */