gedatsu217 added a comment.

I do not intend for this feature to work with colors disabled.

I found that pexpect output the below sequence, and this passed the test.

  self.child.expect_exact("\x1b[" + str(len("(lldb) he") + 1) + "G" + "l" + 
"\x1b[2m" + "p frame" + "\x1b[0m\x1b[1G" + "l" + "\x1b[1G\x1b[2m" + "(lldb) " + 
"\x1b[22m\x1b[" + str(len("(lldb) hel") + 1) + "G")

Probably, "(lldb)" is redisplayed every time a character is typed. On the other 
hand, the character is placed in the designated position.

However, there are two strange points.

1. When a character is typed, it is placed in the designated position, but 
later, it is placed again in column one and overwritten by "(lldb)".
2. About "\x1b[22m". I think this is equal to "\x1b[0m", but the test failed 
when I replace "\x1b[22m" with "\x1b[0m".

Do you think this is a valid test?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81001/new/

https://reviews.llvm.org/D81001



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to