> On 08 Jun 2015, at 14:05, Liviu Ionescu <[email protected]> wrote:
>
>
>> On 08 Jun 2015, at 13:56, Peter Maydell <[email protected]> wrote:
>>
>> Is this verbosity also the thing printing the line with all
>> the escape characters in it?
>
> I don't think so, the code added at around line 4135 in monitor.c looks like:
>
> #if defined(CONFIG_VERBOSE)
> if (verbosity_level >= VERBOSITY_COMMON) {
> printf("Execute 'mon %s'.\n\n", cmdline);
> }
> #endif
> cmd->mhandler.cmd(mon, qdict);
I checked and the gdb monitor instance is created with zero flags, so I updated
the verbosity code to read:
#if defined(CONFIG_VERBOSE)
if (verbosity_level >= VERBOSITY_COMMON) {
if (mon->flags == 0) {
printf("Execute 'mon %s'.\n\n", cmdline);
}
}
#endif
and I no longer get the Execute... echo for the interactive monitor.
but the terminal control chars are still there:
(qemu) info mtree
i[K[Din[K[D[Dinf[K[D[D[Dinfo[K[D[D[D[Dinfo [K[D[D[D[D[Dinfo
m[K[D[D[D[D[D[Dinfo mt[K[D[D[D[D[D[D[Dinfo
mtr[K[D[D[D[D[D[D[D[Dinfo mtre[K[D[D[D[D[D[D[D[D[Dinfo
mtree[K
memory
0000000000000000-ffffffffffffffff (prio 0, RW): system
...
regards,
Liviu