tests: don't print control characters

This commit is contained in:
Fabian 2022-11-22 17:54:34 -06:00
parent 3c81e70794
commit fa0a75c927

View file

@ -47,7 +47,7 @@ function string_to_bytearray(str)
function bytearray_to_string(arr)
{
return String.fromCharCode.apply(String, arr);
return String.fromCharCode.apply(String, arr).replace(/[\x00-\x08\x0b-\x1f\x7f\x80-\xff]/g, " ");
}
function screen_to_text(s)