From 8ba69bcb69befd8ea5d02541b32ddf54425cfd7b Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 10 Nov 2008 08:12:12 +0000 Subject: * Support PINE's style of highlighting menu items with SGR italics --- src/de/mud/terminal/vt320.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/de/mud/terminal') diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index e06915b..ef9665b 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -2614,6 +2614,9 @@ public abstract class vt320 extends VDUBuffer implements VDUInput { attributes |= LOW; } break; + case 3: /* italics */ + attributes |= INVERT; + break; case 4: attributes |= UNDERLINE; break; @@ -2641,6 +2644,9 @@ public abstract class vt320 extends VDUBuffer implements VDUInput { case 21: /* normal intensity */ attributes &= ~(LOW | BOLD); break; + case 23: /* italics off */ + attributes &= ~INVERT; + break; case 25: /* blinking off */ break; case 27: -- cgit v1.2.3