How to enlarge the Emacs editor window under uQLx emulator
How to enlarge the Emacs editor window under uQLx emulator
I tried to make the screen larger when invoking uQLx using the following Linux command:
./qm -b "lrun win1_boot" -g 960x720
My intention is to use a larger 960x720 screen when opening the emacs editor via the following QDOS command.
exec win1_emacs
But the outcome is not what I expected. The screen of 960x720 is mainly blank and dark with exception that the QDOS window and emacs window remaining unchanged and small, not utilising the blank and dark space of the screen. (see the attached image)
https://drive.google.com/file/d/1oDQ0RT ... sp=sharing
What can I do to rectify this problem?
./qm -b "lrun win1_boot" -g 960x720
My intention is to use a larger 960x720 screen when opening the emacs editor via the following QDOS command.
exec win1_emacs
But the outcome is not what I expected. The screen of 960x720 is mainly blank and dark with exception that the QDOS window and emacs window remaining unchanged and small, not utilising the blank and dark space of the screen. (see the attached image)
https://drive.google.com/file/d/1oDQ0RT ... sp=sharing
What can I do to rectify this problem?
Re: How to enlarge the Emacs editor window under uQLx emulator
PE programs normally open with a default window size that fits on any screen. In order to resize this window, do the following:
Note PE is not like Windows - The position of the buttons for Move and Resize is not pre-determined, but depends on the application. Emacs pretty much implements a quasi-standard.
- Move the mouse pointer to the top-right button (the resize button) of the window, (mouse or cursor keys)
- press left mouse button (or SPACE)
- move the mouse pointer to the desired new position of the top-right corner of the window
- press SPACE (or left mouse button) again.
Note PE is not like Windows - The position of the buttons for Move and Resize is not pre-determined, but depends on the application. Emacs pretty much implements a quasi-standard.
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
-
- Font of All Knowledge
- Posts: 4659
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: How to enlarge the Emacs editor window under uQLx emulator
Hi,
Microemacs can be configured by setting environmenral variables, which ENV_BIN is required. This not included in the Microemacs archive zio file, but can be downliaded at:
http://www.dilwyn.me.uk/tk/env.zip
The size of the emacs windows can controlled by defining the environmental variables:
EMACS_ROWS
EMACS_COLS
Details of the Emacs Environmental Variables are detailed in the help file: EMACS.HLP, see section 3.2
I set the above variables to:
SETENV "EMACS_ROWS=100"
SETENV "EMACS_COLS=200"
which gives a full size emacs screen at 1024x768 on QPC, SMSQmulator, Q68, I have not tried UQLX, but it should work.
I will look at this later and report back.
Microemacs can be configured by setting environmenral variables, which ENV_BIN is required. This not included in the Microemacs archive zio file, but can be downliaded at:
http://www.dilwyn.me.uk/tk/env.zip
The size of the emacs windows can controlled by defining the environmental variables:
EMACS_ROWS
EMACS_COLS
Details of the Emacs Environmental Variables are detailed in the help file: EMACS.HLP, see section 3.2
I set the above variables to:
SETENV "EMACS_ROWS=100"
SETENV "EMACS_COLS=200"
which gives a full size emacs screen at 1024x768 on QPC, SMSQmulator, Q68, I have not tried UQLX, but it should work.
I will look at this later and report back.
Regards,
Derek
Derek
Re: How to enlarge the Emacs editor window under uQLx emulator
Thanks!tofro wrote:PE programs normally open with a default window size that fits on any screen. In order to resize this window, do the following:
The top-left button in the window operates in a similar way - and moves the window
- Move the mouse pointer to the top-right button (the resize button) of the window, (mouse or cursor keys)
- press left mouse button (or SPACE)
- move the mouse pointer to the desired new position of the top-right corner of the window
- press SPACE (or left mouse button) again.
Note PE is not like Windows - The position of the buttons for Move and Resize is not pre-determined, but depends on the application. Emacs pretty much implements a quasi-standard.
I can now manually enlarge the window of emacs.
But this has to be done every time.
Now looking at how to set up the environment variables EMACS_ROWS and EMACS_COLS permanently.
Re: How to enlarge the Emacs editor window under uQLx emulator
> Now looking at how to set up the environment variables EMACS_ROWS and EMACS_COLS permanently.
Just add those ENV commands to your normal boot program. There is also an emacs_rc configuration file. It should have those settings. Just edit it. MicroEmacs will always check the emacs_rc on start up to get a local configuration.
Tim
Just add those ENV commands to your normal boot program. There is also an emacs_rc configuration file. It should have those settings. Just edit it. MicroEmacs will always check the emacs_rc on start up to get a local configuration.
Tim
Re: How to enlarge the Emacs editor window under uQLx emulator
In the boot file, I added two linesswensont wrote:> Now looking at how to set up the environment variables EMACS_ROWS and EMACS_COLS permanently.
Just add those ENV commands to your normal boot program. There is also an emacs_rc configuration file. It should have those settings. Just edit it. MicroEmacs will always check the emacs_rc on start up to get a local configuration.
Tim
The Superbasic interpreter flagged up SETENV as unknown.550 SETENV "EMACS_ROWS=100"
560 SETENV "EMACS_COLS=200"
I then changed the above two lines to the following:
There was no error message.550 EMACS_ROWS=100
560 EMACS_COLS=200
After running the boot file, there was no effect on the EMACS window size i.e. it was not enlarged.
I must have done certain novice error.
What was the error?
Re: How to enlarge the Emacs editor window under uQLx emulator
Yu have to LRESPR "ENV_bin" in your BOOT program before using the command SET_ENV.
You will find this here http://www.dilwyn.me.uk/tk/env.zip
You will find this here http://www.dilwyn.me.uk/tk/env.zip
7000 4E75
Re: How to enlarge the Emacs editor window under uQLx emulator
Thanks!RalfR wrote:Yu have to LRESPR "ENV_bin" in your BOOT program before using the command SET_ENV.
You will find this here http://www.dilwyn.me.uk/tk/env.zip
With ENV_bin loaded, I can now use SETENV to set EMACS_ROWS and EMACS_COLS.
One question still remains.
The EMACS window size is now changed with an increase in horizontal dimension due to the new value assigned to EMACS_COLS only. But new value assigned to EMACS_ROWS has no effect on the vertical dimension of the window at all i.e. the window width is unchanged.
What is wrong ?
-
- Font of All Knowledge
- Posts: 4659
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: How to enlarge the Emacs editor window under uQLx emulator
Hi,
I have had another look at the EMACS_HLP file, which I made an error in stating the variable name of EMACS_ROWS, when the help file states EMACS_LINES
The section of EMACS_HLP relating to this is definition is:
Sorry for the confusion.
I have had another look at the EMACS_HLP file, which I made an error in stating the variable name of EMACS_ROWS, when the help file states EMACS_LINES
The section of EMACS_HLP relating to this is definition is:
The environmental variables are read when the Emacs application is run, so changing the variable with SETENV before running EMACS, should change the size of the Emacs window.EMACS_HLP wrote: The following three additional variables are scanned at MicroEMACS startup only
(and should therefore be set from the parent job of MicroEMACS (usually, it is
job 0)).
EMACS_LINES
Number of lines into the MicroEMACS sub-window (defaults to 22, which is the minimum value allowed).
EMACS_COLS
Number of columns into the MicroEMACS sub-window (defaults to 82, which is the minimum value allowed).
Sorry for the confusion.
Regards,
Derek
Derek
Re: How to enlarge the Emacs editor window under uQLx emulator
Very grateful to your guidance!Derek_Stewart wrote:Hi,
I have had another look at the EMACS_HLP file, which I made an error in stating the variable name of EMACS_ROWS, when the help file states EMACS_LINES
The section of EMACS_HLP relating to this is definition is:The environmental variables are read when the Emacs application is run, so changing the variable with SETENV before running EMACS, should change the size of the Emacs window.EMACS_HLP wrote: The following three additional variables are scanned at MicroEMACS startup only
(and should therefore be set from the parent job of MicroEMACS (usually, it is
job 0)).
EMACS_LINES
Number of lines into the MicroEMACS sub-window (defaults to 22, which is the minimum value allowed).
EMACS_COLS
Number of columns into the MicroEMACS sub-window (defaults to 82, which is the minimum value allowed).
Sorry for the confusion.
It now works perfectly.