zaburo / web-shell

Automatically exported from code.google.com/p/web-shell
0 stars 0 forks source link

Width/font size/scaling issues (is this fixed?) #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First off, WebShell is the best idea for the iPhone since sliced bread. 'Nuff 
said on that.

I was using .2.2 (via iPhone) for a while, and it was good, but the interface 
was a bit awkward. I 
noticed it had jumped to .9.4, so I updated. Nicer interface, but still a bit 
clunky (the "Back" 
button floating in mid-terminal is a bit weird, and there's a bit of jumpiness 
to the transition 
from viewing to input). 

When I login now, the login and password prompts are fine. The terminal window 
fits fully within 
a horizontal iPhone screen. After login, however, if I enter my first command 
"ls -al", suddenly 
the scaling alters radically. The relative font size is about 50% larger than 
the initial login prompt, 
and the right-hand side of my "ls" listing (the filenames) is off-screen. 
Pinching the screen does 
nothing -- it appears to be "zoomed-out" already -- but I'm only getting 
something like 47 
characters across the screen.

Sending "clear" restores the normal scaling. Some commands, e.g. "ps -axf" 
display fine (small 
font, no zoom), but "vi foo.txt" will display the same scale/font size issues.

Is there some bash configuration file in my shell that's responsible for this? 
Or is it WebShell? I 
can't duplicate the problem on a desktop browser, and iPhoney seems to not 
support SSL 
connections or something (hitting the URL in iPhoney goes nowhere, and 
generates an "ssl 
handshake failure" on my server).

Original issue reported on code.google.com by ahs...@gmail.com on 1 Aug 2007 at 3:35

GoogleCodeExporter commented 8 years ago
I think it is related to CSS. Can you try this (this goes to everybody having 
this problem)?

Once in the terminal, enter:

export TERM=dumb

You will have a dumb terminal that only spits out characters, no control 
information. If you don't experience 
the problem, then it's certainly a CSS problem.

I believe it's a MobileSafari bug. And I have some ideas for solving it already 
in mind. Keep tuned.

Original comment by mre...@gmail.com on 1 Aug 2007 at 5:58

GoogleCodeExporter commented 8 years ago
Seems to be fixed. Can more people confirm?

Original comment by mre...@gmail.com on 1 Aug 2007 at 6:51

GoogleCodeExporter commented 8 years ago
Well, a little more complicated than I'd thought before. My first report was 
based on starting from portrait 
orientation, then switching to landscape, and that alone makes things a bit 
screwy.

Now, if I start in landscape mode, a few issues:
1) Start with blank screen ("Tap for keyboard")
2) Tap, and get keyboard. Keyboard butts up against the TOP of the terminal 
window, so the "Back" button (if 
it exists at that stage) isn't visible.
3) Enter username/password (barely visible through transparency, so I'm doing 
it blind). Webshell keyboard 
remains present throughout, so now I'm logged in but the keyboard is blocking 
_everything_. (Scrolling down 
with a flick displays a bit of blank space below the Webshell keyboard).
4) Enter "ll" and Send. 
5) Terminal div now displays the output (_slightly_ cut off on the right-hand 
side), and the webshell keyboard 
moves downwards a bit, and the "Back" button becomes visible.

export TERM=dumb does NOT change the output, from what I can tell. I'll admit 
that I'm starting to lose track 
of my various attempts at repeating this behavior!

I'm not a Python programmer -- PHP's my bag -- but I have already designed a 
successful iPhonified web app 
(that resizes after rotation nicely), so I'll take a look at the CSS files and 
see if I can hack them a bit to whip 
this into shape.

I looked a bit in the Python code, but perhaps you can tell me:
1) Is the viewport meta tag easily located (and changed) in the code?
2) Where does the terminal width get set (I noticed the function reference with 
h,w parameters, but don't 
know where they are calculated before being passed).

Original comment by ahs...@gmail.com on 1 Aug 2007 at 6:58

GoogleCodeExporter commented 8 years ago
I am having the same problem as s

Has this been fixed or is there a bash setting to use. Dumb doesn't seem to 
work, as
he describes.

Thanks... 

Original comment by m...@mosc.com on 20 Dec 2007 at 8:54

GoogleCodeExporter commented 8 years ago
Has anyone resolved this issue? Webshell looks so promising but I am having this
exact issue.. been playing with the css all day. No luv.

Original comment by ezp...@gmail.com on 10 Jan 2008 at 12:49

GoogleCodeExporter commented 8 years ago
I believe this is a bug in Safari. I (seem to have) fixed it by adding "height:
265px;" at the end of the #term style in webshell.css at line 20. I'm using a 
16gb
ipod touch 1.1.3. Can anyone confirm?

Original comment by mche...@gmail.com on 18 Feb 2008 at 8:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Adding "height: 265px;" to #term per mcheng2's suggestion fixed this for me in 
both
0.9.5 and 0.9.6-svn.

Using an 8gB iPhone 1.1.4 and zsh.

Original comment by pen...@gmail.com on 10 Mar 2008 at 11:59