keisisqrl / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

after cat a core dump file core in shellinbox ,the charecter display wrong #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.i was learn linux c in the shellinbox when i was downloading something
2.i run a file like this below
#include<stdio>
int main(void)
{
    while(1);
    return 0;
}
compiled it and
 ./a.out
 CTRL+C
./a.out
CTRL+/
ls -l core*
cat core

3.
now your see....

What is the expected output? What do you see instead?
some strang words.....

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by hepin1989 on 4 Dec 2010 at 2:11

GoogleCodeExporter commented 8 years ago
This is most likely the correct behavior. If you output a binary file to the 
console, it is very likely to include all sorts of random control characters 
and escape sequences. This will change the settings of the console.

If you want to restore default settings, click the right mouse button and 
select "Reset". Alternatively, you can run the "reset" command line program, or 
you can try typing "CTRL-V CTRL-O RETURN" in your shell. The latter doesn't 
always fix all your problems, but it is so easy to type, there is never any 
harm in trying it.

Original comment by zod...@gmail.com on 4 Dec 2010 at 7:11