gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] Setting for text size for the terminal emulator in Android


From: Joel Rees
Subject: Re: [gforth] Setting for text size for the terminal emulator in Android gforth?
Date: Mon, 28 Dec 2015 09:03:50 +0900

On Sun, Dec 27, 2015 at 9:36 AM, Bernd Paysan <address@hidden> wrote:
> Am Samstag, 26. Dezember 2015, 10:40:07 schrieb Joel Rees:
>> On Sat, Dec 26, 2015 at 2:40 AM, Bernd Paysan <address@hidden> wrote:
>> > Am Freitag, 25. Dezember 2015, 13:01:22 schrieb Joel Rees:
>> >> I'm getting extremely easy-to-read characters in th terminal emulation
>> >> since an update last week or the week before. Characters about twice
>> >> to three times the normal. Would be great on a smaller smartphone, but
>> >> on the 10 inch tablet, I'd rather have the long lines.
>> >>
>> >> Is there a setting somewhere for it?
>> >
>> > There's a setting to increase the size, 1*scale (normal), 2*scale and
>> > 4*scale (two and 4 times), the default is 1*scale.
>>
>> Can I ask what file gforth would be reading that from on startup, or
>> do I get to go hunting on my own? Using the terminalide shell to do
>>
>>     grep scale *
>>
>> in site-forth doesn't show me anything that I recognize as an
>> initialization line.
>
> It's initialized in <version>/minos2/gl-terminal.fs, where it is defined.

    gl-scaler ? 1 ok
    2 gl-scale ok ( and the font doubles in size )
    1 gl-scale ok ( and the font reverts to the previous size )

But how can I can I get a scale less than 1?

Except I'm sure that's not really the question I should be asking.

    texsize . 7 ok

resize-screen doesn't seem to have any effect, and I'm not seeing
anything else obvious enough to catch my attention, yet.

When switching back and forth between terminal-ide and gforth, I seem
to lose my gforth session sometimes. I get bounced to the desktop (or
whatever it's called in android, and then when I try to switch to
gforth from the desktop, it gives me a fresh screen, as if from COLD
in a fig-forrth system.

>> Now, ' hcols gives me a nice address of a constant, but it shows as
>> 80. But my display column width is 48 (counted by the old low-tech
>> scrape-the-numbers-keys-until-you-hit-the-edge-of-the-screen trick).
>> So I'm pretty sure overwriting that constant won't do what I want.
>
> Maybe SCREEN-ORIENTATION is wrong.  Check it (it's a value), and also check
> SCREEN-ORIENTATION@ - that's reading the current screen orientation via JNI.

I'm not seeing screen-orientation. Is uniform a vocabulary?

>> Is this maybe some new interaction with the Android library, rather
>> than a setting that changed somehow?
>
> Probably. Maybe I'm not getting any onConfigChanged events, which is
> initializing SCREEN-ORIENTATION.

I can see I'm going to have to dig deeper into the source code to be
of much use here. That's probably good, I need an excuse to dig deeper
into gforth.

I notice there's some C or C++ -like syntax code in gl-terminal.fs. I
don't see how the interpreter could be clued to send that to an
external compiler. Is gforth interpreting that?

>> The tablet is an Acer A200 updated to Android 4.0.3, which is as high
>> as Acer says they're going to go with the A200.
>
> --
> Bernd Paysan
> "If you want it done right, you have to do it yourself"
> net2o ID: kQusJzA;address@hidden(dQ*
> http://bernd-paysan.de/

-- 
Joel Rees

Be careful when you look at conspiracy.
Arm yourself with knowledge of yourself, as well:
http://reiisi.blogspot.jp/2011/10/conspiracy-theories.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]