[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-devel] [PATCH 2/2] atari: add the TOS2Win terminal support
From: |
François Revol |
Subject: |
[Qemacs-devel] [PATCH 2/2] atari: add the TOS2Win terminal support |
Date: |
Thu, 20 Apr 2017 23:42:06 +0200 |
---
tty.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tty.c b/tty.c
index 1e2c473..3276247 100644
--- a/tty.c
+++ b/tty.c
@@ -111,6 +111,7 @@ enum TermCode {
TERM_XTERM,
TERM_LINUX,
TERM_CYGWIN,
+ TERM_TW100
};
typedef struct TTYState {
@@ -205,6 +206,11 @@ static int tty_dpy_init(QEditScreen *s,
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 TTY_STYLE_BITS == 32
@@ -289,6 +295,9 @@ static int tty_dpy_init(QEditScreen *s,
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;
@@ -860,6 +869,7 @@ static void comb_cache_describe(QEditScreen *s, EditBuffer
*b) {
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" : "",
--
2.11.0