Friday, January 15, 2010

Text and terminal size/configuration

0 comments
I started a new thread because I think this is divergent from the slow
text issue.

I'm trying to get iSSH to work a little closer to what I need. I'm
coming from connectbot on android, so that is what I'm used to. I
used several ssh clients on palm and on blackberry, but connectbot
thus far is the best ssh client I've used.

Now that I've done some more work trying to configure iSSH, I think it
might be possible to get what I'm looking for, even though it wouldn't
be as automatic or easily configurable with connectbot (and I'm ok
with that).

So, to try to explain the problem...

If my iPhone is in landscape mode and I use iSSH to connect to a
remote host, it seems like iSSH is trying to tell the remote host that
it is an 80x24 terminal window, regardless of the font size slider
under general settings. Depending on the person's use, this may be
fine - for mine, it is not. For me, the best configuration I can find
using iSSH alone is to set the font size slider to the far left. This
ends up with the entire ssh session being contained within the iPhone
screen. This is AWESOME for those times where I'm in a NON DISTRACTED
environment and I can pay full attention to the screen, holding the
iPhone in my hands.

In cases where I want to have the iPhone sitting on a desk or
something and be able to merely GLANCE at it from a distance to check
the status of an SSH session, the font (for me anyway) is just too
small for this. Also, if I am outdoors in direct sunlight, the small
font makes it hard for me to see it easily unless I turn the
brightness up to full.

If I change the font slider to somewhere roughly around half way and I
use the ProFont choice, these problems are alleviated in terms of
readability. I can then EASILY read the text from a distance, and I
can EASILY read the text in direct sunlight (I live in Arizona, and
the sunlight here is VERY bright!) without having to turn the screen
brightness up very much.

The problem, however, is that now I am forced to scroll all around the
"terminal". Instead of iSSH telling the remote computer what the
resultant number of visible columns and rows are, it continues to use
80 columns and 24 rows. So now I have to madly scroll all around the
screen just to see the contents...

So to try to hack some of the connectbot automatic functionality into
iSSH, I can issue the following commands at my iSSH shell prompt:

stty rows 14 columns 47
reset

This manually tells the remote computer that I am no longer using an
80 column by 24 row terminal. Now things are visible, legible, and
usable. I do have a series of problems though:

1. iSSH still thinks I have an 80x24 terminal, so any accidental tap
of the screen causes it to scroll around...

2. iSSH for some reason doesn't allow me to use the bottom portion of
the iPhone in landscape when I am doing this. There is PLENTY of room
for another three lines of text at the bottom (ie, I should be able to
issue "stty rows 17 columns 47" and have it use the entire iPhone
screen), but if I do that, iSSH doesn't allow (even with me dragging
the screeen around) me to use the bottom of the screen. It is like it
is reserved or something.

3. A minor issue if the first two items are fixed, but one that is
disappointing after using connectbot for so long is that changing the
screen orientation or wanting to change the font size is MUCH harder
on iSSH than it was on connectbot. Not only do I have to re-issue the
"stty rows XX columns YY; reset" command any time I change the font
size or orientation, I actually have to DISCONNECT from my ssh
session, change the font size, then reconnect, then try to figure out
the new font size and redo this entire procedure. On connectbot, this
entire process takes place instantly by hitting the volume up or
volume down buttons. Each press of those buttons in connectbot causes
the font size to increase or decrease instantly and it also informs
the remote computer of the change in columns and rows automatically.
So I can switch from an 80x24 terminal to a 40x12 terminal in two
seconds, or to any other size in the same amount of time.

Please understand that I do realize that iSSH is not connectbot. I'm
not saying you should clone the entire application or anything like
that.

I do however truly and honestly believe that the automatic font and
terminal resizing functionality in connectbot is not only something
that iSSH would benefit greatly from, but I think you would get a lot
more sales as well.

Hopefully this all makes sense, I have tried to explain it thoroughly
in the hopes that we can get to a solution for problems 1 and 2 at
minimum. I definitely see #3 as a future feature that I know -*I*-
would like, but which isn't something everyone would require. #1 and
#2 are really necessary for me to be able to use iSSH over some other
tool.

Thanks for any help you can provide.

-Verxion

Comments

0 comments to "Text and terminal size/configuration"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com