pike.git / lib / modules / Stdio.pmod / Terminfo.pmod

version» Context lines:

pike.git/lib/modules/Stdio.pmod/Terminfo.pmod:1: - // $Id: Terminfo.pmod,v 1.17 2003/06/26 23:28:51 nilsson Exp $ + // $Id: Terminfo.pmod,v 1.18 2003/08/07 14:25:50 nilsson Exp $   #pike __REAL_VERSION__         #if constant(thread_create)   #define LOCK object m_key = mutex->lock()   #define UNLOCK destruct(m_key)   #define MUTEX static private object(Thread.Mutex) mutex = Thread.Mutex();   #else   #define LOCK   #define UNLOCK
pike.git/lib/modules/Stdio.pmod/Terminfo.pmod:204:    data=data[1..];    while (sizeof(data) && data[-1]=='\\')    {    string add;    if (sscanf(en,"%s"+br+"%s",add,en)<2) break;    data+="\\"+add;    }       data=replace(data,"\\^","\\*");    -  if (search(data,"^")!=-1) +  if (has_value(data, "^"))    data=replace(data,ctrlcharsfrom,ctrlcharsto);       data = replace(data,    ({"\\E","\\e","\\n","\\r","\\t","\\b","\\f",    "\\*","\\\\","\\,","\\:","#",    "\\0","\\1","\\2","\\3","\\4","\\5","\\6","\\7"}),    ({"\033","\033","\n","\r","\t","\b","\f",    "^","\\",",",":","#!",    "#0","#1","#2","#3","#4","#5","#6","#7"}));