Tuesday, 29 March 2016

How to increase the spacing between all E2B menu entries

grub4dos allows you to adjust the character and line spacing of text.

One of the template .cfg files in E2B demonstrates this:(\_ISO\docs\Templates\StripedFlat_pwd_is_fred)

The Sample_MyE2B.cfg file shows you how you can alter these, using the lnspace and wdspace parameters:

The default value is 'n' (or 0) for lnspace and wdspace.

Here is a 14-entry menu using the default spacing:

\_ISO\MyE2B.cfg
!BAT
set lnspace=n
set wdspace=n
set bdwidth=1
set rstart=3
set menuw=62
set topstart=2
set noitems=14
set tophelp=16



Now let's try using lnspace=8

\_ISO\MyE2B.cfg
!BAT
set lnspace=8
set wdspace=n
set bdwidth=1
set rstart=3
set menuw=62
set topstart=2
set noitems=14
set tophelp=16



Notice that the menu box size has increased. That is why we need to use a small value for the noitems and tophelp values. If noitems is too large, grub4dos will use the maximum size for the screen resolution (allowing for 4/5 help lines below the menu). If tophelp is too large, then you won't see any menu help text below the menu.

Note that this also affects the console line spacing during the file enumeration phase when booting to the Main menu too and other displays such as the F1 help system, etc. You can prevent the files being listed during enumeration by using set redir=> nul in the MyE2B.cfg file. I do not recommend using the redir variable however, because that will also suppress informational and warning messages too.

No comments:

Post a Comment