public static String strip_vt100(String line)
	{
		int i;
		StringBuffer nline = new StringBuffer();
		
		for(i = 0; i < line.length(); i++) {
			while(i < line.length() && line.charAt(i) == vt_esc.charAt(0)) {	// Got escape sequence
				// OK. All VT100 cmds seems to end either with m or H
				while(i < line.length() && line.charAt(i) != 'm' && line.charAt(i) != 'H')
					i++;
				i++;	// Skip m or H
			}
			if(i >= line.length())	// Did we hit the end?
				break;
				
			nline.append(line.charAt(i));
		}
		
		return nline.toString();
	}