[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs tty.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs tty.c |
Date: |
Sun, 7 May 2017 02:18:40 -0400 (EDT) |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 17/05/07 02:18:40
Modified files:
. : tty.c
Log message:
tty: detect and handle AtariST terminal TW100 (F.Revol)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/tty.c?cvsroot=qemacs&r1=1.85&r2=1.86
Patches:
Index: tty.c
===================================================================
RCS file: /sources/qemacs/qemacs/tty.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- tty.c 5 May 2017 20:10:51 -0000 1.85
+++ tty.c 7 May 2017 06:18:40 -0000 1.86
@@ -111,6 +111,7 @@
TERM_XTERM,
TERM_LINUX,
TERM_CYGWIN,
+ TERM_TW100,
};
typedef struct TTYState {
@@ -206,6 +207,11 @@
ts->term_code = TERM_CYGWIN;
ts->term_flags |= KBS_CONTROL_H |
USE_BOLD_AS_BRIGHT_FG | USE_BLINK_AS_BRIGHT_BG;
+ } else
+ if (strstart(ts->term_name, "tw100", NULL)) {
+ ts->term_code = TERM_TW100;
+ ts->term_flags |= KBS_CONTROL_H |
+ USE_BOLD_AS_BRIGHT_FG | USE_BLINK_AS_BRIGHT_BG;
}
}
if (strstr(ts->term_name, "true") || strstr(ts->term_name, "24")) {
@@ -299,6 +305,9 @@
if (ts->term_code == TERM_CYGWIN)
s->charset = &charset_8859_1;
+ if (ts->term_code == TERM_TW100)
+ s->charset = find_charset("atarist");
+
if (!s->charset && !isatty(fileno(s->STDOUT)))
s->charset = &charset_8859_1;
@@ -879,6 +888,7 @@
ts->term_code == TERM_XTERM ? "XTERM" :
ts->term_code == TERM_LINUX ? "LINUX" :
ts->term_code == TERM_CYGWIN ? "CYGWIN" :
+ ts->term_code == TERM_TW100 ? "TW100" :
"");
eb_printf(b, "%*s: %#x %s%s%s%s%s%s\n", w, "term_flags", ts->term_flags,
ts->term_flags & KBS_CONTROL_H ? " KBS_CONTROL_H" : "",