issues
search
jexp
/
mg_client
WebClient for the MUD MorgenGrauen
http://telnet.morgengrauen.info
4
stars
1
forks
source link
Trennung von Auszeichnung und Text
#3
Closed
jexp
closed
12 years ago
jexp
commented
13 years ago
einkommender Text soll aufgetrennt werden und in einem Objekt landen, das
{ text : text, style: [style*], gag: false, ... } enthält
style ist ein objekt mit {start, [end], style}
das gilt fuer ansi sequenzen die aus dem mud kommen, aber auch für Auszeichnungen die durch trigger hinzugefügt werden
damit ist der trigger-text immer sauber
man kann auch kontrollieren, ob die Auszeichnungen zum Schluss mit erscheinen (z.b. bei Anzeige in anderen Fenstern)