jedivind / terminal-ide

Terminal IDE emulator for Android. Original source: code.google.com/p/terminal-ide
8 stars 3 forks source link

Bash Shell Bug #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start using commands like "cd" and "ls"
2.
3.

What is the expected output? What do you see instead?
I see the proper output, but each time I type a command all sorts of extra 
characters (mostly just < left angle brackets and new lines) appear and mess up 
the command I'm trying to type. The Key Logger is off.

What version of the product are you using? On what operating system?
Latest from Google Play (installed today).

Please provide any additional information below.

This is what happens:

I try entering some commands:

    terminal++...$ cd someDir
    terminal++...$ ls
    folder folder folder
    terminal++...$

Then I try typing "ls" again but the the command line disappears and the shell 
now looks like this:

    terminal++...$ cd someDir
    terminal++...$ ls
    folder folder folder
    <

    <s

If I was trying to type the command "dropbear" instead of ls, then it'd look 
like this:

    terminal++...$ cd someDir
    terminal++...$ ls
    folder folder folder
    <

    <ropbear

As you notice, the command line is gone, and you can't see the first letter of 
the subsequent command...

The commands still work though, and it looks like this:

    terminal++...$ cd someDir
    terminal++...$ ls
    folder folder folder
    <

    <s
    folder folder folder
    terminal++...$

However, after trying more commands, it gets worse:

    terminal++...$ cd someDir
    terminal++...$ ls
    folder folder folder
    <

    <s
    folder folder folder
    <

    <d<
    <<s

And worse:

    terminal++...$ cd someDir
    terminal++...$ ls
    folder folder folder
    <

    <s
    folder folder folder
    <

    <d<
    <<s
    <

    <d<
    <

    <d<
    <

    <d<

To the point where you can never return to the command line and the shell is 
rendered entirely useless.

If you could fix this, that'd be awesome. I'd really like to use this app.

This is happening on the Samsung Galaxy S2 (I haven't tried it on my Galaxy S3 
yet).

Original issue reported on code.google.com by TruSktr on 25 Jul 2012 at 12:04

GoogleCodeExporter commented 9 years ago
Hmm.. Could be UTF-8 related ?

The Terminal Renderer (an oldish jackpal version) has some bugs so I think that 
is probably the issue, not BASH.

Are the folders regularly named ?

Does this happen when you :

cd ~/system
ls

Does that work ?

Original comment by spartacu...@gmail.com on 17 Aug 2012 at 1:52

GoogleCodeExporter commented 9 years ago
I discovered that this happens when the prompt is longer than the width of the 
terminal.

Original comment by TruSktr on 7 Nov 2012 at 7:22

GoogleCodeExporter commented 9 years ago
I wonder if there's a way to make lines wrap in the terminal like normal.

Original comment by TruSktr on 7 Nov 2012 at 7:10

GoogleCodeExporter commented 9 years ago
Same Problem on HTC One X

Maybe you can reset reset the prompt after each command 

Original comment by Paul70...@gmail.com on 19 Mar 2013 at 6:17

GoogleCodeExporter commented 9 years ago
One "solution" is to change the font's point size. I have great eyes and a very 
high resolution screen, so I prefer 9, but sometimes use 10... This gives a 
much greater line length.

Original comment by areemt...@gmail.com on 4 Apr 2013 at 3:22